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()
DiagnosticEventStoreload in interface DiagnosticEventStore<java.lang.Long>public void store(DiagnosticEvent event)
DiagnosticEventStorestore in interface DiagnosticEventStore<java.lang.Long>public java.util.NavigableMap<java.lang.Long,DiagnosticEvent> scan(java.lang.Long id, int limit)
DiagnosticEventStorescan in interface DiagnosticEventStore<java.lang.Long>public java.lang.Long getLastEventId()
DiagnosticEventStoreDiagnosticEventStore.scan(Comparable, int).getLastEventId in interface DiagnosticEventStore<java.lang.Long>Copyright © 2009-2022 The Apache Software Foundation