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 Details

  • Method Details

    • cachedProxy

      public static DirectoryTreeCacheProxy cachedProxy(io.github.zebin.javabash.sandbox.DirectoryTree delegate, AtomicReference<String> cacheControl)
    • call

      public void call(String event)
      Specified by:
      call in interface GitEventListener
    • put

      public Writer put(io.github.zebin.javabash.sandbox.PosixPath posixPath)
      Specified by:
      put in interface io.github.zebin.javabash.sandbox.DirectoryTree
    • delete

      public boolean delete(io.github.zebin.javabash.sandbox.PosixPath posixPath)
      Specified by:
      delete in interface io.github.zebin.javabash.sandbox.DirectoryTree
    • patch

      public Writer patch(io.github.zebin.javabash.sandbox.PosixPath posixPath)
      Specified by:
      patch in interface io.github.zebin.javabash.sandbox.DirectoryTree
    • get

      public Reader get(io.github.zebin.javabash.sandbox.PosixPath posixPath)
      Specified by:
      get in interface io.github.zebin.javabash.sandbox.DirectoryTree
    • exists

      public boolean exists(io.github.zebin.javabash.sandbox.PosixPath posixPath)
      Specified by:
      exists in interface io.github.zebin.javabash.sandbox.DirectoryTree
    • isDir

      public boolean isDir(io.github.zebin.javabash.sandbox.PosixPath posixPath)
      Specified by:
      isDir in interface io.github.zebin.javabash.sandbox.DirectoryTree
    • list

      public Stream<io.github.zebin.javabash.sandbox.PosixPath> list(io.github.zebin.javabash.sandbox.PosixPath posixPath)
      Specified by:
      list in interface io.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:
      traverse in interface io.github.zebin.javabash.sandbox.DirectoryTree
    • setupDir

      public <T> T setupDir(Supplier<T> result)
      Specified by:
      setupDir in interface io.github.zebin.javabash.sandbox.DirectoryTree