public interface Continuation
Modifier and Type | Method and Description |
---|---|
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 |
isReadyForWrite() |
boolean |
isResumed()
Get the resumed status
|
boolean |
isTimeout()
Get the timeout status
|
void |
reset()
Reset the continuation
|
void |
resume()
Resume a suspended request
|
void |
setObject(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
|
boolean suspend(long timeout)
timeout
- the suspend timeout, timeout of 0 will suspend the request indefinitely.void resume()
void reset()
boolean isNew()
boolean isPending()
boolean isResumed()
boolean isTimeout()
Object getObject()
void setObject(Object o)
o
- An arbitrary object to associate with the continuationboolean isReadyForWrite()
Copyright © 2019 JBoss by Red Hat. All rights reserved.