public class ExponentialBackoffMsgRetryManager extends java.lang.Object implements FailedMsgRetryManager
Constructor and Description |
---|
ExponentialBackoffMsgRetryManager() |
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
|
public void prepare(SpoutConfig spoutConfig, java.util.Map<java.lang.String,java.lang.Object> stormConf)
FailedMsgRetryManager
prepare
in interface FailedMsgRetryManager
public void failed(java.lang.Long offset)
FailedMsgRetryManager
failed
in interface FailedMsgRetryManager
public void acked(java.lang.Long offset)
FailedMsgRetryManager
acked
in interface FailedMsgRetryManager
public void retryStarted(java.lang.Long offset)
FailedMsgRetryManager
retryStarted
in interface FailedMsgRetryManager
public java.lang.Long nextFailedMessageToRetry()
FailedMsgRetryManager
nextFailedMessageToRetry
in interface FailedMsgRetryManager
public boolean shouldReEmitMsg(java.lang.Long offset)
FailedMsgRetryManager
shouldReEmitMsg
in interface FailedMsgRetryManager
public boolean retryFurther(java.lang.Long offset)
FailedMsgRetryManager
retryFurther
in interface FailedMsgRetryManager
public java.util.Set<java.lang.Long> clearOffsetsBefore(java.lang.Long kafkaOffset)
FailedMsgRetryManager
clearOffsetsBefore
in interface FailedMsgRetryManager