Package org.ngengine.platform
Interface VStore.VStoreBackend
-
- Enclosing class:
- VStore
public static interface VStore.VStoreBackend
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default AsyncTask<java.lang.Boolean>createIfAbsent(java.lang.String path, byte[] completeValue)Atomically publishes a complete value only if no target entry exists.AsyncTask<java.lang.Void>delete(java.lang.String path)AsyncTask<java.lang.Boolean>exists(java.lang.String path)AsyncTask<java.util.List<java.lang.String>>listAll()AsyncTask<java.io.InputStream>read(java.lang.String path)AsyncTask<java.io.OutputStream>write(java.lang.String path)
-
-
-
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 supportsAsyncTask.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()
-
-