Class EventQueueManager
- java.lang.Object
-
- com.devcycle.sdk.server.local.managers.EventQueueManager
-
public class EventQueueManager extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description EventQueueManager(java.lang.String serverKey, LocalBucketing localBucketing, DVCLocalOptions options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflushEvents()Flush events in queue to DevCycle Events API.voidqueueAggregateEvent(Event event, BucketedUserConfig bucketedConfig)Queue DVCEvent that can be aggregated together, where multiple calls are aggregated by incrementing the 'value' field.voidqueueEvent(User user, Event event)Queue DVCAPIEvent for publishing to DevCycle Events API.
-
-
-
Constructor Detail
-
EventQueueManager
public EventQueueManager(java.lang.String serverKey, LocalBucketing localBucketing, DVCLocalOptions options) throws java.lang.Exception- Throws:
java.lang.Exception
-
-
Method Detail
-
flushEvents
public void flushEvents() throws java.lang.ExceptionFlush events in queue to DevCycle Events API. Requeue events if flush fails- Throws:
java.lang.Exception
-
queueEvent
public void queueEvent(User user, Event event) throws java.lang.Exception
Queue DVCAPIEvent for publishing to DevCycle Events API.- Throws:
java.lang.Exception
-
queueAggregateEvent
public void queueAggregateEvent(Event event, BucketedUserConfig bucketedConfig) throws java.lang.Exception
Queue DVCEvent that can be aggregated together, where multiple calls are aggregated by incrementing the 'value' field.- Throws:
java.lang.Exception
-
-