Package org.apache.cxf.ws.rm.soap
Class RetransmissionQueueImpl.ResendCandidate
java.lang.Object
org.apache.cxf.ws.rm.soap.RetransmissionQueueImpl.ResendCandidate
- All Implemented Interfaces:
Runnable,RetryStatus
- Enclosing class:
- RetransmissionQueueImpl
protected class RetransmissionQueueImpl.ResendCandidate
extends Object
implements Runnable, RetryStatus
Represents a candidate for resend, i.e. an unacked outgoing message.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidA resend has been attempted.protected voidcancel()Cancel further resend (although no ACK has been received).longintprotected MessagegetNext()longlongintprotected voidinitiate(boolean requestAcknowledge) Initiate resend asynchronsly.booleanbooleanprotected voidresolved()ACK has been received for this candidate.protected voidresume()voidrun()protected final voidschedule()protected voidsuspend()
-
Constructor Details
-
ResendCandidate
- Parameters:
m- the unacked message
-
-
Method Details
-
initiate
protected void initiate(boolean requestAcknowledge) Initiate resend asynchronsly.- Parameters:
requestAcknowledge- true if a AckRequest header is to be sent with resend
-
run
public void run() -
getNumber
public long getNumber() -
getRetries
public int getRetries()- Specified by:
getRetriesin interfaceRetryStatus- Returns:
- number of resend attempts
-
getMaxRetries
public int getMaxRetries()- Specified by:
getMaxRetriesin interfaceRetryStatus- Returns:
- number of max resend attempts
-
getNext
- Specified by:
getNextin interfaceRetryStatus- Returns:
- date of next resend
-
getPrevious
- Specified by:
getPreviousin interfaceRetryStatus- Returns:
- date of previous resend or null if no attempt is yet taken
-
getNextInterval
public long getNextInterval()- Specified by:
getNextIntervalin interfaceRetryStatus- Returns:
- the nextInterval
-
getBackoff
public long getBackoff()- Specified by:
getBackoffin interfaceRetryStatus- Returns:
- the backoff
-
isSuspended
public boolean isSuspended()- Specified by:
isSuspendedin interfaceRetryStatus- Returns:
- the suspended
-
isPending
public boolean isPending()- Specified by:
isPendingin interfaceRetryStatus- Returns:
- if resend attempt is pending
-
resolved
protected void resolved()ACK has been received for this candidate. -
cancel
protected void cancel()Cancel further resend (although no ACK has been received). -
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()
-