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.
      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
    • Constructor Detail

      • InMemoryEntryLogMetadataMap

        public InMemoryEntryLogMetadataMap()
    • Method Detail

      • forEach

        public void forEach​(java.util.function.BiConsumer<java.lang.Long,​EntryLogMetadata> action)
        Description copied from interface: EntryLogMetadataMap
        Performs the given action for each entry in this map until all entries have been processed or the action throws an exception.
        Specified by:
        forEach in interface EntryLogMetadataMap
      • size

        public int size()
        Description copied from interface: EntryLogMetadataMap
        Returns number of entryLogMetadata records presents into the map.
        Specified by:
        size in interface EntryLogMetadataMap
        Returns:
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException