Interface DiagnosticEventStore<T extends 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 Comparable<T>>
Enables storing and retrieving DiagnosticEvents.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the greatest event ID that can be used to fetch events via scan(Comparable, int).
    void
    Initializes the store.
    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.
    void
    Stores provided event and returns the new associated store key for it.
  • Method Details

    • load

      void load()
      Initializes the store.
    • store

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

      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).