@ApiStatus.Internal public final class DiskCache extends java.lang.Object implements IEventCache
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FILE_SUFFIX
File suffix added to all serialized event files.
|
Constructor and Description |
---|
DiskCache(SentryOptions options) |
Modifier and Type | Method and Description |
---|---|
void |
discard(SentryEvent event)
Discards the event from the storage.
|
@NotNull java.util.Iterator<SentryEvent> |
iterator() |
void |
store(SentryEvent event)
Stores the event so that it can be sent later.
|
public static final java.lang.String FILE_SUFFIX
public DiskCache(SentryOptions options)
public void store(SentryEvent event)
IEventCache
store
in interface IEventCache
event
- the event to storepublic void discard(SentryEvent event)
IEventCache
discard
in interface IEventCache
event
- the event to discard from storage@NotNull public @NotNull java.util.Iterator<SentryEvent> iterator()
iterator
in interface java.lang.Iterable<SentryEvent>