Apache CXF API

org.apache.cxf.transport.jms.continuations
Class JMSContinuationWrapper

java.lang.Object
  extended by org.apache.cxf.transport.jms.continuations.JMSContinuationWrapper
All Implemented Interfaces:
ContinuationWrapper

public class JMSContinuationWrapper
extends java.lang.Object
implements ContinuationWrapper


Constructor Summary
JMSContinuationWrapper(Bus b, Message m, MessageObserver observer, java.util.List<JMSContinuationWrapper> cList)
           
 
Method Summary
protected  void cancelTimerTask()
           
protected  void createTimerTask(long timeout)
           
protected  void doResume()
           
 java.lang.Object getObject()
          Get arbitrary object associated with the continuation for context
 boolean isNew()
          Is this a newly created Continuation.
 boolean isPending()
          Get the pending status
 boolean isResumed()
          Get the resumed status
 void reset()
          Reset the continuation
 void resume()
          Resume a suspended request
 void setObject(java.lang.Object o)
          Sets arbitrary object associated with the continuation for context
 boolean suspend(long timeout)
          This method will suspend the request for the timeout or until resume is called
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMSContinuationWrapper

public JMSContinuationWrapper(Bus b,
                              Message m,
                              MessageObserver observer,
                              java.util.List<JMSContinuationWrapper> cList)
Method Detail

getObject

public java.lang.Object getObject()
Description copied from interface: ContinuationWrapper
Get arbitrary object associated with the continuation for context

Specified by:
getObject in interface ContinuationWrapper
Returns:
An arbitrary object associated with the continuation

isNew

public boolean isNew()
Description copied from interface: ContinuationWrapper
Is this a newly created Continuation.

Specified by:
isNew in interface ContinuationWrapper
Returns:
True if the continuation has just been created and has not yet suspended the request.

isPending

public boolean isPending()
Description copied from interface: ContinuationWrapper
Get the pending status

Specified by:
isPending in interface ContinuationWrapper
Returns:
True if the continuation has been suspended.

isResumed

public boolean isResumed()
Description copied from interface: ContinuationWrapper
Get the resumed status

Specified by:
isResumed in interface ContinuationWrapper
Returns:
True if the continuation is has been resumed.

reset

public void reset()
Description copied from interface: ContinuationWrapper
Reset the continuation

Specified by:
reset in interface ContinuationWrapper

resume

public void resume()
Description copied from interface: ContinuationWrapper
Resume a suspended request

Specified by:
resume in interface ContinuationWrapper

doResume

protected void doResume()

setObject

public void setObject(java.lang.Object o)
Description copied from interface: ContinuationWrapper
Sets arbitrary object associated with the continuation for context

Specified by:
setObject in interface ContinuationWrapper
Parameters:
o - An arbitrary object to associate with the continuation

suspend

public boolean suspend(long timeout)
Description copied from interface: ContinuationWrapper
This method will suspend the request for the timeout or until resume is called

Specified by:
suspend in interface ContinuationWrapper
Returns:
True if resume called or false if timeout.

createTimerTask

protected void createTimerTask(long timeout)

cancelTimerTask

protected void cancelTimerTask()

Apache CXF API

Apache CXF