public interface RetransmissionQueue
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_BASE_RETRANSMISSION_INTERVAL |
static int |
DEFAULT_EXPONENTIAL_BACKOFF |
Modifier and Type | Method and Description |
---|---|
void |
addUnacknowledged(Message message)
Accepts a new message for possible future retransmission.
|
int |
countUnacknowledged() |
int |
countUnacknowledged(SourceSequence seq) |
RetryStatus |
getRetransmissionStatus(SourceSequence seq,
long num)
Returns the retransmission status for the specified message.
|
Map<Long,RetryStatus> |
getRetransmissionStatuses(SourceSequence seq)
Return the retransmission status of all the messages assigned to the sequence.
|
List<Long> |
getUnacknowledgedMessageNumbers(SourceSequence seq) |
boolean |
isEmpty() |
void |
purgeAcknowledged(SourceSequence seq)
Purge all candidates for the given sequence that have been acknowledged.
|
void |
purgeAll(SourceSequence seq)
Purge all candidates for the given sequence.
|
void |
resume(SourceSequence seq)
Resumes the retransmission attempts for the specified sequence
|
void |
start()
Initiate resends.
|
void |
stop(SourceSequence seq)
Stops retransmission queue.
|
void |
suspend(SourceSequence seq)
Suspends the retransmission attempts for the specified sequence
|
static final String DEFAULT_BASE_RETRANSMISSION_INTERVAL
static final int DEFAULT_EXPONENTIAL_BACKOFF
int countUnacknowledged(SourceSequence seq)
seq
- the sequence under considerationint countUnacknowledged()
boolean isEmpty()
void addUnacknowledged(Message message)
message
- the message context.void purgeAcknowledged(SourceSequence seq)
seq
- the sequence object.void purgeAll(SourceSequence seq)
seq
- the sequence objectList<Long> getUnacknowledgedMessageNumbers(SourceSequence seq)
seq
- RetryStatus getRetransmissionStatus(SourceSequence seq, long num)
seq
- num
- Map<Long,RetryStatus> getRetransmissionStatuses(SourceSequence seq)
seq
- void start()
void stop(SourceSequence seq)
seq
- void suspend(SourceSequence seq)
seq
- void resume(SourceSequence seq)
seq
- Apache CXF