Class PersistentHitQueue

  • All Implemented Interfaces:

    
    public class PersistentHitQueue
    extends HitQueuing
                        

    Provides functionality for asynchronous processing of hits in a synchronous manner while providing the ability to retry hits.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      boolean queue(DataEntity entity) Queues a DataEntity to be processed
      void beginProcessing() Puts the Queue in non-suspended state and begin processing hits
      void suspend() Puts the Queue in suspended state and discontinue processing hits
      void clear() Removes all the persisted hits from the queue
      int count() Returns the number of items in the queue
      void close() Close the current HitQueuing
      • Methods inherited from class com.adobe.marketing.mobile.services.HitQueuing

        handlePrivacyChange
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • queue

         boolean queue(DataEntity entity)

        Queues a DataEntity to be processed

        Parameters:
        entity - the entity to be processed
        Returns:

        a boolean indication whether queuing the entity was successful or not

      • beginProcessing

         void beginProcessing()

        Puts the Queue in non-suspended state and begin processing hits

      • suspend

         void suspend()

        Puts the Queue in suspended state and discontinue processing hits

      • clear

         void clear()

        Removes all the persisted hits from the queue

      • count

         int count()

        Returns the number of items in the queue

      • close

         void close()

        Close the current HitQueuing