Documentation of 'com.datumbox.framework.common.storage.abstracts.AbstractStorageEngine' Java class
AbstractStorageEngine
com.datumbox.framework.common.storage.abstracts

Class AbstractStorageEngine<SC extends StorageConfiguration>

  • All Implemented Interfaces:
    StorageEngine, java.lang.AutoCloseable
    Direct Known Subclasses:
    AbstractFileStorageEngine


    public abstract class AbstractStorageEngine<SC extends StorageConfiguration>
    extends java.lang.Object
    implements StorageEngine
    The AbstractStorageEngine is the base class for all concrete storage engines. Those classes can be used in a try-with-resources statement block. Moreover this class setups a shutdown hook which ensures that the storage engine will automatically call close() before the JVM is terminated. Finally it contains methods to store complex objects with fields that point to other serialized objects.
    • Method Detail

      • getStorageName

        public java.lang.String getStorageName()
        Returns the name of the storage.
        Specified by:
        getStorageName in interface StorageEngine
        Returns:
      • isClosed

        public boolean isClosed()
        Checks if the storage engine is closed.
        Specified by:
        isClosed in interface StorageEngine
        Returns:
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.