Interface DiagnosticEventStore<T extends java.lang.Comparable<T>>

  • Type Parameters:
    T - type of key that is used to reference an event
    All Known Implementing Classes:
    DiagnosticEventMemoryStore

    public interface DiagnosticEventStore<T extends java.lang.Comparable<T>>
    Enables storing and retrieving DiagnosticEvents.
    • Method Detail

      • load

        void load()
        Initializes the store.
      • store

        void store​(DiagnosticEvent event)
        Stores provided event and returns the new associated store key for it.
      • scan

        java.util.NavigableMap<T,​DiagnosticEvent> scan​(T key,
                                                             int limit)
        Returns a view on all events with a key greater than the provided value (inclusive) up to the specified number of results. Events may be added or become unavailable over time. Keys must be unique, sortable and monotonically incrementing. Returns an empty map in case no events could be found.
      • getLastEventId

        T getLastEventId()
        Returns the greatest event ID that can be used to fetch events via scan(Comparable, int).