public interface FailedMsgRetryManager
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
void |
acked(java.lang.Long offset)
Message corresponding to the offset, was acked to kafka spout.
|
java.util.Set<java.lang.Long> |
clearOffsetsBefore(java.lang.Long kafkaOffset)
Clear any offsets before kafkaOffset.
|
void |
failed(java.lang.Long offset)
Message corresponding to the offset failed in kafka spout.
|
java.lang.Long |
nextFailedMessageToRetry()
The offset of message, which is to be re-emitted.
|
void |
prepare(SpoutConfig spoutConfig,
java.util.Map<java.lang.String,java.lang.Object> stormConf)
Initialization
|
boolean |
retryFurther(java.lang.Long offset)
Spout will clean up the state for this offset if false is returned.
|
void |
retryStarted(java.lang.Long offset)
Message corresponding to the offset, has been re-emitted and under transit.
|
boolean |
shouldReEmitMsg(java.lang.Long offset)
Decide whether the message corresponding to the offset should be emitted NOW
|
void prepare(SpoutConfig spoutConfig, java.util.Map<java.lang.String,java.lang.Object> stormConf)
void failed(java.lang.Long offset)
offset
- void acked(java.lang.Long offset)
offset
- void retryStarted(java.lang.Long offset)
offset
- java.lang.Long nextFailedMessageToRetry()
boolean shouldReEmitMsg(java.lang.Long offset)
offset
- boolean retryFurther(java.lang.Long offset)
offset
- java.util.Set<java.lang.Long> clearOffsetsBefore(java.lang.Long kafkaOffset)
kafkaOffset
-