public class ExponentialBackoffMsgRetryManager extends Object implements FailedMsgRetryManager
Constructor and Description |
---|
ExponentialBackoffMsgRetryManager(long retryInitialDelayMs,
double retryDelayMultiplier,
long retryDelayMaxMs) |
Modifier and Type | Method and Description |
---|---|
void |
acked(Long offset) |
Set<Long> |
clearInvalidMessages(Long kafkaOffset) |
void |
failed(Long offset) |
Long |
nextFailedMessageToRetry() |
void |
retryStarted(Long offset) |
boolean |
shouldRetryMsg(Long offset) |
public ExponentialBackoffMsgRetryManager(long retryInitialDelayMs, double retryDelayMultiplier, long retryDelayMaxMs)
public void failed(Long offset)
failed
in interface FailedMsgRetryManager
public void acked(Long offset)
acked
in interface FailedMsgRetryManager
public void retryStarted(Long offset)
retryStarted
in interface FailedMsgRetryManager
public Long nextFailedMessageToRetry()
nextFailedMessageToRetry
in interface FailedMsgRetryManager
public boolean shouldRetryMsg(Long offset)
shouldRetryMsg
in interface FailedMsgRetryManager
public Set<Long> clearInvalidMessages(Long kafkaOffset)
clearInvalidMessages
in interface FailedMsgRetryManager
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.