Package org.apache.cxf.ws.rm.soap
Class RedeliveryQueueImpl.RedeliverCandidate
java.lang.Object
org.apache.cxf.ws.rm.soap.RedeliveryQueueImpl.RedeliverCandidate
- All Implemented Interfaces:
Runnable,RetryStatus
- Enclosing class:
- RedeliveryQueueImpl
protected class RedeliveryQueueImpl.RedeliverCandidate
extends Object
implements Runnable, RetryStatus
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidA resend has been attempted.protected voidcancel()Cancel further redelivery (although not successfully delivered).longintprotected MessagegetNext()longlongintprotected voidinitiate()Initiate redelivery asynchronsly.booleanbooleanprotected voidresolved()the message has been delivered to the applicationprotected voidresume()voidrun()protected final voidschedule()protected voidsuspend()
-
Constructor Details
-
RedeliverCandidate
-
-
Method Details
-
initiate
protected void initiate()Initiate redelivery asynchronsly. -
run
public void run() -
getNumber
public long getNumber() -
getNext
- Specified by:
getNextin interfaceRetryStatus- Returns:
- the next retry time
-
getPrevious
- Specified by:
getPreviousin interfaceRetryStatus- Returns:
- the previous retry time
-
getRetries
public int getRetries()- Specified by:
getRetriesin interfaceRetryStatus- Returns:
- the number of retries
-
getMaxRetries
public int getMaxRetries()- Specified by:
getMaxRetriesin interfaceRetryStatus- Returns:
- the max number of retries permitted
-
getNextInterval
public long getNextInterval()- Specified by:
getNextIntervalin interfaceRetryStatus- Returns:
- the nextInterval
-
getBackoff
public long getBackoff()- Specified by:
getBackoffin interfaceRetryStatus- Returns:
- the backoff
-
isPending
public boolean isPending()- Specified by:
isPendingin interfaceRetryStatus- Returns:
- the pending
-
isSuspended
public boolean isSuspended()- Specified by:
isSuspendedin interfaceRetryStatus- Returns:
- the suspended
-
resolved
protected void resolved()the message has been delivered to the application -
cancel
protected void cancel()Cancel further redelivery (although not successfully delivered). -
suspend
protected void suspend() -
resume
protected void resume() -
getMessage
- Returns:
- associated message context
-
attempted
protected void attempted()A resend has been attempted. Schedule the next attempt. -
schedule
protected final void schedule()
-