Package org.apache.cxf.continuations
Interface Continuation
- 
 public interface ContinuationRepresents transport-neutral suspended invocation instances or continuations
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectgetObject()Get arbitrary object associated with the continuation for contextbooleanisNew()Is this a newly created Continuation.booleanisPending()Get the pending statusbooleanisReadyForWrite()booleanisResumed()Get the resumed statusbooleanisTimeout()Get the timeout statusvoidreset()Reset the continuationvoidresume()Resume a suspended requestvoidsetObject(Object o)Sets 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 Detail- 
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
 
 - 
setObjectvoid setObject(Object o) Sets arbitrary object associated with the continuation for context- Parameters:
- o- An arbitrary object to associate with the continuation
 
 - 
isReadyForWriteboolean isReadyForWrite() 
 
- 
 
-