Class VStore


  • public class VStore
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  VStore.VStoreBackend  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int MAX_CREATE_IF_ABSENT_BYTES
      Maximum complete value accepted by conditional creation; existing write APIs are unchanged.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      AsyncTask<java.lang.Boolean> createIfAbsent​(java.lang.String path, byte[] completeValue)
      Creates a complete value without replacing any existing target entry.
      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<byte[]> readFully​(java.lang.String path)  
      AsyncTask<java.io.OutputStream> write​(java.lang.String path)  
      AsyncTask<java.lang.Void> writeFully​(java.lang.String path, byte[] data)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MAX_CREATE_IF_ABSENT_BYTES

        public static final int MAX_CREATE_IF_ABSENT_BYTES
        Maximum complete value accepted by conditional creation; existing write APIs are unchanged.
        See Also:
        Constant Field Values
    • Method Detail

      • read

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

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

        public AsyncTask<java.lang.Boolean> createIfAbsent​(java.lang.String path,
                                                           byte[] completeValue)
        Creates a complete value without replacing any existing target entry. True means this call published the value; false means an entry already exists. IO failures remain failures, and a failed call may have published a complete value before a subsequent durability/cleanup error. The value is copied before queueing and limited to MAX_CREATE_IF_ABSENT_BYTES bytes. Only the private copy is erased after backend completion. Cancelling the returned view does not cancel the private publication, which may still commit. This is ordinary desktop storage, not a vault against privileged processes or host access-control administration. Platforms without direct task completion observation are rejected. An observation failure abandons work that has not started; an already-started publication retains its private copy until the backend settles.
      • exists

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

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

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

        public AsyncTask<java.lang.Void> writeFully​(java.lang.String path,
                                                    byte[] data)
      • readFully

        public AsyncTask<byte[]> readFully​(java.lang.String path)