Class DiagnosticEventMemoryStore

  • All Implemented Interfaces:
    DiagnosticEventStore<java.lang.Long>

    public final class DiagnosticEventMemoryStore
    extends java.lang.Object
    implements DiagnosticEventStore<java.lang.Long>
    Simple on-heap memory store that allows to buffer and retrieve a fixed number of events.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Long getLastEventId()
      Returns the greatest event ID that can be used to fetch events via DiagnosticEventStore.scan(Comparable, int).
      void load()
      Initializes the store.
      java.util.NavigableMap<java.lang.Long,​DiagnosticEvent> scan​(java.lang.Long id, int limit)
      Returns a view on all events with a key greater than the provided value (inclusive) up to the specified number of results.
      void store​(DiagnosticEvent event)
      Stores provided event and returns the new associated store key for it.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DiagnosticEventMemoryStore

        public DiagnosticEventMemoryStore()