Class PersistentEntryLogMetadataMap

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, EntryLogMetadataMap

    public class PersistentEntryLogMetadataMap
    extends java.lang.Object
    implements EntryLogMetadataMap
    Persistent entryLogMetadata-map that stores entry-loggers metadata into rocksDB.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()
      Clear all records from the map.
      void close()  
      boolean containsKey​(long entryLogId)
      Checks if record with entryLogId exists into the map.
      void forEach​(java.util.function.BiConsumer<java.lang.Long,​EntryLogMetadata> action)
      EntryLogMetadata life-cycle in supplied action will be transient and it will be recycled as soon as supplied action is completed.
      void forKey​(long entryLogId, java.util.function.BiConsumer<java.lang.Long,​EntryLogMetadata> action)
      EntryLogMetadata life-cycle in supplied action will be transient and it will be recycled as soon as supplied action is completed.
      void put​(long entryLogId, EntryLogMetadata entryLogMeta)
      Adds entryLogMetadata record into the map.
      void remove​(long entryLogId)
      Removes entryLogMetadata record from the map.
      int size()
      Returns number of entryLogMetadata records presents into the map.
      void throwIfClosed()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait