public interface RedeliveryQueue
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_BASE_REDELIVERY_INTERVAL |
static int |
DEFAULT_EXPONENTIAL_BACKOFF |
Modifier and Type | Method and Description |
---|---|
void |
addUndelivered(Message message)
Accepts a failed message for possible future redelivery.
|
int |
countUndelivered() |
int |
countUndelivered(DestinationSequence seq) |
RetryStatus |
getRedeliveryStatus(DestinationSequence seq,
long num)
Returns the retransmission status for the specified message.
|
Map<Long,RetryStatus> |
getRedeliveryStatuses(DestinationSequence seq)
Return the retransmission status of all the messages assigned to the sequence.
|
List<Long> |
getUndeliveredMessageNumbers(DestinationSequence seq) |
boolean |
isEmpty() |
void |
purgeAll(DestinationSequence seq)
Purge all candiates for the given sequence.
|
void |
resume(DestinationSequence seq)
Resumes the redelivery attempts for the specified sequence
|
void |
start()
Initiate resends.
|
void |
stop(DestinationSequence seq)
Stops redelivery queue.
|
void |
suspend(DestinationSequence seq)
Suspends the redelivery attempts for the specified sequence
|
static final String DEFAULT_BASE_REDELIVERY_INTERVAL
static final int DEFAULT_EXPONENTIAL_BACKOFF
int countUndelivered(DestinationSequence seq)
seq
- the sequence under considerationint countUndelivered()
boolean isEmpty()
void addUndelivered(Message message)
message
- the message context.void purgeAll(DestinationSequence seq)
seq
- the sequence objectList<Long> getUndeliveredMessageNumbers(DestinationSequence seq)
seq
- RetryStatus getRedeliveryStatus(DestinationSequence seq, long num)
seq
- num
- Map<Long,RetryStatus> getRedeliveryStatuses(DestinationSequence seq)
seq
- void start()
void stop(DestinationSequence seq)
seq
- void suspend(DestinationSequence seq)
seq
- void resume(DestinationSequence seq)
seq
- Apache CXF