Class InMemoryEntryLogMetadataMap

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

    public class InMemoryEntryLogMetadataMap
    extends java.lang.Object
    implements EntryLogMetadataMap
    In-memory metadata-store to store entry-log metadata-map in memory-map.
    • 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)
      Performs the given action for each entry in this map until all entries have been processed or the action throws an exception.
      void forKey​(long entryLogId, java.util.function.BiConsumer<java.lang.Long,​EntryLogMetadata> action)
      Performs the given action for the key.
      boolean isEmpty()
      Returns true if there are no elements in the map.
      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.
      • Methods inherited from class java.lang.Object

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