Class AbstractSharedBackend

java.lang.Object
org.apache.jackrabbit.oak.spi.blob.AbstractSharedBackend
All Implemented Interfaces:
SharedBackend
Direct Known Subclasses:
FSBackend

public abstract class AbstractSharedBackend extends Object implements SharedBackend
  • Constructor Details

    • AbstractSharedBackend

      public AbstractSharedBackend()
  • Method Details

    • getOrCreateReferenceKey

      public byte[] getOrCreateReferenceKey() throws DataStoreException
      Returns the reference key of this backend. If one does not already exist, it is automatically created in an implementation-specific way. The default implementation simply creates a temporary random key that's valid only until the data store gets restarted. Subclasses can override and/or decorate this method to support a more persistent reference key.

      This method is called only once during the lifetime of a backend instance and the return value is cached in memory, so it's no problem if the implementation is slow.

      Returns:
      reference key
      Throws:
      DataStoreException - if the key is not available