public final class Response.SuspendedContextImpl extends Object implements SuspendContext
Constructor and Description |
---|
SuspendedContextImpl() |
Modifier and Type | Method and Description |
---|---|
CompletionHandler<Response> |
getCompletionHandler()
Get the suspended
Response CompletionHandler . |
SuspendStatus |
getSuspendStatus() |
long |
getTimeout(TimeUnit timeunit)
Get the suspended
Response timeout. |
TimeoutHandler |
getTimeoutHandler()
Get the suspended
Response TimeoutHandler . |
boolean |
isSuspended()
Returns true, if the
Response is suspended, or
false otherwise. |
void |
markCancelled()
Deprecated.
|
protected boolean |
markCancelled(int expectedModCount)
Marks
Response as cancelled, if expectedModCount corresponds
to the current modCount. |
boolean |
markResumed()
Marks
Response as resumed, but doesn't resume associated
FilterChainContext invocation. |
void |
setTimeout(long timeout,
TimeUnit timeunit)
Set the suspended
Response timeout. |
public boolean markResumed()
Response
as resumed, but doesn't resume associated
FilterChainContext
invocation.protected boolean markCancelled(int expectedModCount)
Response
as cancelled, if expectedModCount corresponds
to the current modCount. This method doesn't resume associated
FilterChainContext
invocation.public void markCancelled()
Response
as cancelled, but doesn't resume associated
FilterChainContext
invocation.public CompletionHandler<Response> getCompletionHandler()
SuspendContext
Response
CompletionHandler
.getCompletionHandler
in interface SuspendContext
Response
CompletionHandler
.public TimeoutHandler getTimeoutHandler()
SuspendContext
Response
TimeoutHandler
.getTimeoutHandler
in interface SuspendContext
Response
TimeoutHandler
.public long getTimeout(TimeUnit timeunit)
SuspendContext
Response
timeout. If returned value less or equal
to zero - timeout is not set.getTimeout
in interface SuspendContext
Response
timeout. If returned value less or equal
to zero - timeout is not set.public void setTimeout(long timeout, TimeUnit timeunit)
SuspendContext
Response
timeout. If timeout value less or equal
to zero - suspended Response
won't be never timed out.setTimeout
in interface SuspendContext
timeout
- the suspended Response
timeout.timeunit
- timeout units.public boolean isSuspended()
SuspendContext
Response
is suspended, or
false otherwise.isSuspended
in interface SuspendContext
Response
is suspended, or
false otherwise.public SuspendStatus getSuspendStatus()
Copyright © 2015 Oracle Corporation. All rights reserved.