Package io.split.client.events
Class InMemoryEventsStorage
- java.lang.Object
-
- io.split.client.events.InMemoryEventsStorage
-
- All Implemented Interfaces:
EventsStorage,EventsStorageConsumer,EventsStorageProducer
public class InMemoryEventsStorage extends Object implements EventsStorage
-
-
Constructor Summary
Constructors Constructor Description InMemoryEventsStorage(int maxQueueSize, TelemetryRuntimeProducer telemetryRuntimeProducer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisFull()WrappedEventpop()List<WrappedEvent>popAll()booleantrack(Event event, int eventSize)
-
-
-
Constructor Detail
-
InMemoryEventsStorage
public InMemoryEventsStorage(int maxQueueSize, TelemetryRuntimeProducer telemetryRuntimeProducer)
-
-
Method Detail
-
pop
public WrappedEvent pop()
- Specified by:
popin interfaceEventsStorageConsumer
-
popAll
public List<WrappedEvent> popAll()
- Specified by:
popAllin interfaceEventsStorageConsumer
-
isFull
public boolean isFull()
- Specified by:
isFullin interfaceEventsStorageConsumer
-
track
public boolean track(Event event, int eventSize)
- Specified by:
trackin interfaceEventsStorageProducer
-
-