Interface HitProcessing
-
- All Implemented Interfaces:
public interface HitProcessing
-
-
Method Summary
Modifier and Type Method Description abstract intretryInterval(@NonNull() DataEntity entity)Determines the interval at which a hit should be retried abstract voidprocessHit(@NonNull() DataEntity entity, @NonNull() HitProcessingResult processingResult)Function that is invoked with a DataEntity and provides functionality for processing the hit. -
-
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- TheDataEntityto be processed.processingResult- Return a boolean variable indicatingDataEntityis successfully processed or not.
-
-
-
-