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 Modifier Constructor Description protectedRedeliverCandidate(Message m)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidattempted()A resend has been attempted.protected voidcancel()Cancel further redelivery (although not successfully delivered).longgetBackoff()intgetMaxRetries()protected MessagegetMessage()DategetNext()longgetNextInterval()longgetNumber()DategetPrevious()intgetRetries()protected voidinitiate()Initiate redelivery asynchronsly.booleanisPending()booleanisSuspended()protected voidresolved()the message has been delivered to the applicationprotected voidresume()voidrun()protected voidschedule()protected voidsuspend()
-
-
-
Constructor Detail
-
RedeliverCandidate
protected RedeliverCandidate(Message m)
-
-
Method Detail
-
initiate
protected void initiate()
Initiate redelivery asynchronsly.
-
getNumber
public long getNumber()
-
getNext
public Date getNext()
- Specified by:
getNextin interfaceRetryStatus- Returns:
- the next retry time
-
getPrevious
public Date 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
protected Message getMessage()
- Returns:
- associated message context
-
attempted
protected void attempted()
A resend has been attempted. Schedule the next attempt.
-
schedule
protected final void schedule()
-
-