Package org.apache.cxf.ws.rm.soap
Class RedeliveryQueueImpl
java.lang.Object
org.apache.cxf.ws.rm.soap.RedeliveryQueueImpl
- All Implemented Interfaces:
RedeliveryQueue
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.apache.cxf.ws.rm.RedeliveryQueue
DEFAULT_BASE_REDELIVERY_INTERVAL, DEFAULT_EXPONENTIAL_BACKOFF -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddUndelivered(org.apache.cxf.message.Message message) Accepts a failed message for possible future redelivery.protected RedeliveryQueueImpl.RedeliverCandidatecacheUndelivered(org.apache.cxf.message.Message message) Accepts a new resend candidate.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.protected List<RedeliveryQueueImpl.RedeliverCandidate>protected List<RedeliveryQueueImpl.RedeliverCandidate>protected Map<String,List<RedeliveryQueueImpl.RedeliverCandidate>> booleanisEmpty()protected booleanvoidPurge all candiates for the given sequence.protected voidvoidResumes the redelivery attempts for the specified sequencevoidvoidstart()Initiate resends.voidstop(DestinationSequence seq) Stops redelivery queue.voidSuspends the redelivery attempts for the specified sequence
-
Constructor Details
-
RedeliveryQueueImpl
-
-
Method Details
-
getManager
-
setManager
-
addUndelivered
public void addUndelivered(org.apache.cxf.message.Message message) Description copied from interface:RedeliveryQueueAccepts a failed message for possible future redelivery.- Specified by:
addUndeliveredin interfaceRedeliveryQueue- Parameters:
message- the message context.
-
countUndelivered
- Specified by:
countUndeliveredin interfaceRedeliveryQueue- Parameters:
seq- the sequence under consideration- Returns:
- the number of undelivered messages for that sequence
-
countUndelivered
public int countUndelivered()- Specified by:
countUndeliveredin interfaceRedeliveryQueue- Returns:
- the total number of undelivered messages in this queue
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceRedeliveryQueue- Returns:
- true if there are no unacknowledged messages in the queue
-
purgeAll
Description copied from interface:RedeliveryQueuePurge all candiates for the given sequence.- Specified by:
purgeAllin interfaceRedeliveryQueue- Parameters:
seq- the sequence object
-
getUndeliveredMessageNumbers
- Specified by:
getUndeliveredMessageNumbersin interfaceRedeliveryQueue- Returns:
-
getSequenceCandidates
protected List<RedeliveryQueueImpl.RedeliverCandidate> getSequenceCandidates(DestinationSequence seq) - Parameters:
seq- the sequence under consideration- Returns:
- the list of resend candidates for that sequence
-
getSequenceCandidates
- Parameters:
key- the sequence identifier under consideration- Returns:
- the list of resend candidates for that sequence
-
isSequenceSuspended
- Parameters:
key- the sequence identifier under consideration- Returns:
- true if the sequence is currently suspended; false otherwise
-
getRedeliveryStatus
Description copied from interface:RedeliveryQueueReturns the retransmission status for the specified message.- Specified by:
getRedeliveryStatusin interfaceRedeliveryQueue- Returns:
-
getRedeliveryStatuses
Description copied from interface:RedeliveryQueueReturn the retransmission status of all the messages assigned to the sequence.- Specified by:
getRedeliveryStatusesin interfaceRedeliveryQueue- Returns:
-
start
public void start()Description copied from interface:RedeliveryQueueInitiate resends.- Specified by:
startin interfaceRedeliveryQueue
-
stop
Description copied from interface:RedeliveryQueueStops redelivery queue.- Specified by:
stopin interfaceRedeliveryQueue
-
suspend
Description copied from interface:RedeliveryQueueSuspends the redelivery attempts for the specified sequence- Specified by:
suspendin interfaceRedeliveryQueue
-
resume
Description copied from interface:RedeliveryQueueResumes the redelivery attempts for the specified sequence- Specified by:
resumein interfaceRedeliveryQueue
-
cacheUndelivered
protected RedeliveryQueueImpl.RedeliverCandidate cacheUndelivered(org.apache.cxf.message.Message message) Accepts a new resend candidate.- Parameters:
message- the message.- Returns:
- ResendCandidate
-
purgeDelivered
-
getUndelivered
- Returns:
- a map relating sequence ID to a lists of un-acknowledged messages for that sequence
-