Class EventQueueManager


  • public class EventQueueManager
    extends java.lang.Object
    • Constructor Detail

      • EventQueueManager

        public EventQueueManager​(java.lang.String sdkKey,
                                 LocalBucketing localBucketing,
                                 DVCLocalOptions options)
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • flushEvents

        public void flushEvents()
                         throws java.lang.Exception
        Flush 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
      • cleanup

        public void cleanup()