Class DirectoryTreeCacheProxy
java.lang.Object
io.github.andreyzebin.gitSql.cache.DirectoryTreeCacheProxy
- All Implemented Interfaces:
GitEventListener,io.github.zebin.javabash.sandbox.DirectoryTree
public class DirectoryTreeCacheProxy
extends Object
implements io.github.zebin.javabash.sandbox.DirectoryTree, GitEventListener
-
Constructor Summary
ConstructorsConstructorDescriptionDirectoryTreeCacheProxy(io.github.zebin.javabash.sandbox.DirectoryTree dt, AtomicReference<String> cacheControl, Map<String, FileManagerCacheProxy.FileManagerCache> caches, Map<String, FileManagerCacheProxy.FileReadCache> readCaches, Map<String, FileManagerCacheProxy.LsCache> lsCache) -
Method Summary
Modifier and TypeMethodDescriptionstatic DirectoryTreeCacheProxycachedProxy(io.github.zebin.javabash.sandbox.DirectoryTree delegate, AtomicReference<String> cacheControl) voidbooleandelete(io.github.zebin.javabash.sandbox.PosixPath posixPath) booleanexists(io.github.zebin.javabash.sandbox.PosixPath posixPath) get(io.github.zebin.javabash.sandbox.PosixPath posixPath) booleanisDir(io.github.zebin.javabash.sandbox.PosixPath posixPath) Stream<io.github.zebin.javabash.sandbox.PosixPath>list(io.github.zebin.javabash.sandbox.PosixPath posixPath) patch(io.github.zebin.javabash.sandbox.PosixPath posixPath) put(io.github.zebin.javabash.sandbox.PosixPath posixPath) <T> Tvoidtraverse(io.github.zebin.javabash.sandbox.PosixPath start, Function<io.github.zebin.javabash.sandbox.PosixPath, Boolean> sayEnter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.zebin.javabash.sandbox.DirectoryTree
validate
-
Constructor Details
-
DirectoryTreeCacheProxy
public DirectoryTreeCacheProxy(io.github.zebin.javabash.sandbox.DirectoryTree dt, AtomicReference<String> cacheControl, Map<String, FileManagerCacheProxy.FileManagerCache> caches, Map<String, FileManagerCacheProxy.FileReadCache> readCaches, Map<String, FileManagerCacheProxy.LsCache> lsCache)
-
-
Method Details
-
cachedProxy
public static DirectoryTreeCacheProxy cachedProxy(io.github.zebin.javabash.sandbox.DirectoryTree delegate, AtomicReference<String> cacheControl) -
call
- Specified by:
callin interfaceGitEventListener
-
put
- Specified by:
putin interfaceio.github.zebin.javabash.sandbox.DirectoryTree
-
delete
public boolean delete(io.github.zebin.javabash.sandbox.PosixPath posixPath) - Specified by:
deletein interfaceio.github.zebin.javabash.sandbox.DirectoryTree
-
patch
- Specified by:
patchin interfaceio.github.zebin.javabash.sandbox.DirectoryTree
-
get
- Specified by:
getin interfaceio.github.zebin.javabash.sandbox.DirectoryTree
-
exists
public boolean exists(io.github.zebin.javabash.sandbox.PosixPath posixPath) - Specified by:
existsin interfaceio.github.zebin.javabash.sandbox.DirectoryTree
-
isDir
public boolean isDir(io.github.zebin.javabash.sandbox.PosixPath posixPath) - Specified by:
isDirin interfaceio.github.zebin.javabash.sandbox.DirectoryTree
-
list
public Stream<io.github.zebin.javabash.sandbox.PosixPath> list(io.github.zebin.javabash.sandbox.PosixPath posixPath) - Specified by:
listin interfaceio.github.zebin.javabash.sandbox.DirectoryTree
-
traverse
public void traverse(io.github.zebin.javabash.sandbox.PosixPath start, Function<io.github.zebin.javabash.sandbox.PosixPath, Boolean> sayEnter) - Specified by:
traversein interfaceio.github.zebin.javabash.sandbox.DirectoryTree
-
setupDir
- Specified by:
setupDirin interfaceio.github.zebin.javabash.sandbox.DirectoryTree
-