Package org.apache.cxf.continuations
Interface Continuation
public interface Continuation
Represents transport-neutral suspended invocation instances
 or continuations
- 
Method SummaryModifier and TypeMethodDescriptionGet arbitrary object associated with the continuation for contextbooleanisNew()Is this a newly created Continuation.booleanGet the pending statusbooleanbooleanGet the resumed statusbooleanGet the timeout statusvoidreset()Reset the continuationvoidresume()Resume a suspended requestvoidSets arbitrary object associated with the continuation for contextbooleansuspend(long timeout) This method will suspend the request for the timeout or until resume is called
- 
Method Details- 
suspendboolean suspend(long timeout) This method will suspend the request for the timeout or until resume is called- Parameters:
- timeout- the suspend timeout, timeout of 0 will suspend the request indefinitely.
- Returns:
- true if suspend was successful.
 
- 
resumevoid resume()Resume a suspended request
- 
resetvoid reset()Reset the continuation
- 
isNewboolean isNew()Is this a newly created Continuation.- Returns:
- true if the continuation has just been created and has not yet suspended the request.
 
- 
isPendingboolean isPending()Get the pending status- Returns:
- true if the continuation has been suspended.
 
- 
isResumedboolean isResumed()Get the resumed status- Returns:
- true if the continuation is has been resumed.
 
- 
isTimeoutboolean isTimeout()Get the timeout status- Returns:
- true if the continuation is has been timeout.
 
- 
getObjectObject getObject()Get arbitrary object associated with the continuation for context- Returns:
- An arbitrary object associated with the continuation
 
- 
setObjectSets arbitrary object associated with the continuation for context- Parameters:
- o- An arbitrary object to associate with the continuation
 
- 
isReadyForWriteboolean isReadyForWrite()
 
-