@ThreadSafe public final class AsyncUfsAbsentPathCache extends java.lang.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,
java.util.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, java.util.List<Inode> prefixInodes)
UfsAbsentPathCacheprocess in interface UfsAbsentPathCachepath - the path to process for the cacheprefixInodes - the existing inodes for the path prefixpublic void processExisting(AlluxioURI path)
UfsAbsentPathCacheprocessExisting in interface UfsAbsentPathCachepath - the path to process for the cachepublic boolean isAbsent(AlluxioURI path)
UfsAbsentPathCacheisAbsent in interface UfsAbsentPathCachepath - the path to checkCopyright © 2020. All Rights Reserved.