Interface HitProcessing

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract int retryInterval(@NonNull() DataEntity entity) Determines the interval at which a hit should be retried
      abstract void processHit(@NonNull() DataEntity entity, @NonNull() HitProcessingResult processingResult) Function that is invoked with a DataEntity and provides functionality for processing the hit.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • retryInterval

         abstract int retryInterval(@NonNull() DataEntity entity)

        Determines the interval at which a hit should be retried

        Parameters:
        entity - The hit whose retry interval is to be computed
        Returns:

        Hit retry interval in seconds.

      • processHit

         abstract void processHit(@NonNull() DataEntity entity, @NonNull() HitProcessingResult processingResult)

        Function that is invoked with a DataEntity and provides functionality for processing the hit.

        Parameters:
        entity - The DataEntity to be processed.
        processingResult - Return a boolean variable indicating DataEntity is successfully processed or not.