Class EventQueueManager


  • public class EventQueueManager
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void flushEvents()
      Flush events in queue to DevCycle Events API.
      void queueAggregateEvent​(Event event, BucketedUserConfig bucketedConfig)
      Queue DVCEvent that can be aggregated together, where multiple calls are aggregated by incrementing the 'value' field.
      void queueEvent​(User user, Event event)
      Queue DVCAPIEvent for publishing to DevCycle Events API.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.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