org.apache.cxf.ws.rm.soap
Class RetransmissionQueueImpl.ResendCandidate

java.lang.Object
  extended by org.apache.cxf.ws.rm.soap.RetransmissionQueueImpl.ResendCandidate
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
RetransmissionQueueImpl

protected class RetransmissionQueueImpl.ResendCandidate
extends java.lang.Object
implements java.lang.Runnable

Represents a candidate for resend, i.e. an unacked outgoing message. When this is determined as due another resend attempt, an asynchronous task is scheduled for this purpose.


Constructor Summary
protected RetransmissionQueueImpl.ResendCandidate(org.apache.cxf.message.Message m)
           
 
Method Summary
protected  org.apache.cxf.message.Message getMessage()
           
protected  void initiate(boolean requestAcknowledge)
          Initiate resend asynchronsly.
protected  boolean isDue()
           
protected  boolean isPending()
           
protected  void resolved()
          ACK has been received for this candidate.
 void run()
          Async resend logic.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RetransmissionQueueImpl.ResendCandidate

protected RetransmissionQueueImpl.ResendCandidate(org.apache.cxf.message.Message m)
Parameters:
ctx - message context for the unacked message
Method Detail

run

public void run()
Async resend logic.

Specified by:
run in interface java.lang.Runnable

isDue

protected boolean isDue()
Returns:
true if candidate is due a resend REVISIT should bound the max number of resend attampts

isPending

protected boolean isPending()
Returns:
if resend attempt is pending

initiate

protected void initiate(boolean requestAcknowledge)
Initiate resend asynchronsly.

Parameters:
requestAcknowledge - true if a AckRequest header is to be sent with resend

resolved

protected void resolved()
ACK has been received for this candidate.


getMessage

protected org.apache.cxf.message.Message getMessage()
Returns:
associated message context


Copyright © 2006 Apache Software Foundation. All Rights Reserved.