@ThreadSafe public final class AsyncUfsAbsentPathCache extends Object implements UfsAbsentPathCache
UfsAbsentPathCache
which implements asynchronous addition and removal to the
cache, since the processing of the path may be slow.UfsAbsentPathCache.Factory
Constructor and Description |
---|
AsyncUfsAbsentPathCache(MountTable mountTable,
int numThreads)
Creates a new instance of
AsyncUfsAbsentPathCache . |
Modifier and Type | Method and Description |
---|---|
boolean |
isAbsent(AlluxioURI path)
Returns true if the given path is absent, according to this cache.
|
void |
process(AlluxioURI path,
List<Inode> prefixInodes)
Processes the given path for the cache.
|
void |
processExisting(AlluxioURI path)
Processes the given path that already exists.
|
public AsyncUfsAbsentPathCache(MountTable mountTable, int numThreads)
AsyncUfsAbsentPathCache
.mountTable
- the mount tablenumThreads
- the maximum number of threads for the async thread poolpublic void process(AlluxioURI path, List<Inode> prefixInodes)
UfsAbsentPathCache
process
in interface UfsAbsentPathCache
path
- the path to process for the cacheprefixInodes
- the existing inodes for the path prefixpublic void processExisting(AlluxioURI path)
UfsAbsentPathCache
processExisting
in interface UfsAbsentPathCache
path
- the path to process for the cachepublic boolean isAbsent(AlluxioURI path)
UfsAbsentPathCache
isAbsent
in interface UfsAbsentPathCache
path
- the path to checkCopyright © 2023. All Rights Reserved.