Interface VStore.VStoreBackend

  • Enclosing class:
    VStore

    public static interface VStore.VStoreBackend
    • Method Detail

      • read

        AsyncTask<java.io.InputStream> read​(java.lang.String path)
      • write

        AsyncTask<java.io.OutputStream> write​(java.lang.String path)
      • createIfAbsent

        default AsyncTask<java.lang.Boolean> createIfAbsent​(java.lang.String path,
                                                            byte[] completeValue)
        Atomically publishes a complete value only if no target entry exists. The input remains owned by the caller until the returned private task settles; implementations must not retain it afterwards. Create-capable backends must return a task that supports AsyncTask.observeCompletion(java.util.function.Consumer<T>, java.util.function.Consumer<java.lang.Throwable>) so completion can be forwarded without executor submission. Unsupported backends must fail, never emulate exists-then-write.
      • exists

        AsyncTask<java.lang.Boolean> exists​(java.lang.String path)
      • delete

        AsyncTask<java.lang.Void> delete​(java.lang.String path)
      • listAll

        AsyncTask<java.util.List<java.lang.String>> listAll()