Package org.apache.cxf.ws.rm
Interface RetransmissionQueue
- All Known Implementing Classes:
RetransmissionQueueImpl
public interface RetransmissionQueue
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddUnacknowledged(org.apache.cxf.message.Message message) Accepts a new message for possible future retransmission.intintgetRetransmissionStatus(SourceSequence seq, long num) Returns the retransmission status for the specified message.Return the retransmission status of all the messages assigned to the sequence.booleanisEmpty()voidPurge all candidates for the given sequence that have been acknowledged.voidpurgeAll(SourceSequence seq) Purge all candidates for the given sequence.voidresume(SourceSequence seq) Resumes the retransmission attempts for the specified sequencevoidstart()Initiate resends.voidstop(SourceSequence seq) Stops retransmission queue.voidsuspend(SourceSequence seq) Suspends the retransmission attempts for the specified sequence
-
Field Details
-
DEFAULT_BASE_RETRANSMISSION_INTERVAL
- See Also:
-
DEFAULT_EXPONENTIAL_BACKOFF
static final int DEFAULT_EXPONENTIAL_BACKOFF- See Also:
-
-
Method Details
-
countUnacknowledged
- Parameters:
seq- the sequence under consideration- Returns:
- the number of unacknowledged messages for that sequence
-
countUnacknowledged
int countUnacknowledged()- Returns:
- the total number of unacknowledged messages in this queue
-
isEmpty
boolean isEmpty()- Returns:
- true if there are no unacknowledged messages in the queue
-
addUnacknowledged
void addUnacknowledged(org.apache.cxf.message.Message message) Accepts a new message for possible future retransmission. Implementations must call the RMEndpoint.handleAccepted() method for each accepted message.- Parameters:
message- the message context.
-
purgeAcknowledged
Purge all candidates for the given sequence that have been acknowledged. Implementations must call the RMEndpoint.handleAcknowledgment() method for each acknowledged message.- Parameters:
seq- the sequence object.
-
purgeAll
Purge all candidates for the given sequence.- Parameters:
seq- the sequence object
-
getUnacknowledgedMessageNumbers
- Parameters:
seq-- Returns:
-
getRetransmissionStatus
Returns the retransmission status for the specified message.- Parameters:
seq-num-- Returns:
-
getRetransmissionStatuses
Return the retransmission status of all the messages assigned to the sequence.- Parameters:
seq-- Returns:
-
start
void start()Initiate resends. -
stop
Stops retransmission queue.- Parameters:
seq-
-
suspend
Suspends the retransmission attempts for the specified sequence- Parameters:
seq-
-
resume
Resumes the retransmission attempts for the specified sequence- Parameters:
seq-
-