Package org.apache.cxf.ws.rm
Interface RedeliveryQueue
- All Known Implementing Classes:
RedeliveryQueueImpl
public interface RedeliveryQueue
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddUndelivered(org.apache.cxf.message.Message message) Accepts a failed message for possible future redelivery.intintgetRedeliveryStatus(DestinationSequence 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 candiates for the given sequence.voidResumes the redelivery attempts for the specified sequencevoidstart()Initiate resends.voidstop(DestinationSequence seq) Stops redelivery queue.voidSuspends the redelivery attempts for the specified sequence
-
Field Details
-
DEFAULT_BASE_REDELIVERY_INTERVAL
- See Also:
-
DEFAULT_EXPONENTIAL_BACKOFF
static final int DEFAULT_EXPONENTIAL_BACKOFF- See Also:
-
-
Method Details
-
countUndelivered
- Parameters:
seq- the sequence under consideration- Returns:
- the number of unacknowledged messages for that sequence
-
countUndelivered
int countUndelivered()- Returns:
- the total number of undelivered messages in this queue
-
isEmpty
boolean isEmpty()- Returns:
- true if there are no unacknowledged messages in the queue
-
addUndelivered
void addUndelivered(org.apache.cxf.message.Message message) Accepts a failed message for possible future redelivery.- Parameters:
message- the message context.
-
purgeAll
Purge all candiates for the given sequence.- Parameters:
seq- the sequence object
-
getUndeliveredMessageNumbers
- Parameters:
seq-- Returns:
-
getRedeliveryStatus
Returns the retransmission status for the specified message.- Parameters:
seq-num-- Returns:
-
getRedeliveryStatuses
Return the retransmission status of all the messages assigned to the sequence.- Parameters:
seq-- Returns:
-
start
void start()Initiate resends. -
stop
Stops redelivery queue.- Parameters:
seq-
-
suspend
Suspends the redelivery attempts for the specified sequence- Parameters:
seq-
-
resume
Resumes the redelivery attempts for the specified sequence- Parameters:
seq-
-