public final class DiagnosticEventMemoryStore extends java.lang.Object implements DiagnosticEventStore<java.lang.Long>
Constructor and Description |
---|
DiagnosticEventMemoryStore() |
Modifier and Type | Method and 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.
|
public void load()
DiagnosticEventStore
load
in interface DiagnosticEventStore<java.lang.Long>
public void store(DiagnosticEvent event)
DiagnosticEventStore
store
in interface DiagnosticEventStore<java.lang.Long>
public java.util.NavigableMap<java.lang.Long,DiagnosticEvent> scan(java.lang.Long id, int limit)
DiagnosticEventStore
scan
in interface DiagnosticEventStore<java.lang.Long>
public java.lang.Long getLastEventId()
DiagnosticEventStore
DiagnosticEventStore.scan(Comparable, int)
.getLastEventId
in interface DiagnosticEventStore<java.lang.Long>
Copyright © 2009-2020 The Apache Software Foundation