public interface IEventCache extends java.lang.Iterable<SentryEvent>
Note that this interface doesn't handle the situation of resending the stored events after a crash. While that is surely one of the main usecases for the persistent storage of events, the re-initialization is out of scope of the event transport logic.
Modifier and Type | Method and Description |
---|---|
void |
discard(SentryEvent event)
Discards the event from the storage.
|
void |
store(SentryEvent event)
Stores the event so that it can be sent later.
|
void store(SentryEvent event)
event
- the event to storevoid discard(SentryEvent event)
event
- the event to discard from storage