public final class Response.SuspendedContextImpl extends Object implements SuspendContext, Connection.CloseListener
| Constructor and Description |
|---|
Response.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()
Marks
Response as cancelled, but doesn't resume associated
FilterChainContext invocation. |
void |
markResumed()
Marks
Response as resumed, but doesn't resume associated
FilterChainContext invocation. |
void |
onClosed(Connection connection,
Connection.CloseType closeType) |
void |
setTimeout(long timeout,
TimeUnit timeunit)
Set the suspended
Response timeout. |
public void markResumed()
Response as resumed, but doesn't resume associated
FilterChainContext invocation.public void markCancelled()
Response as cancelled, but doesn't resume associated
FilterChainContext invocation.public void onClosed(Connection connection, Connection.CloseType closeType) throws IOException
onClosed in interface Connection.CloseListenerIOExceptionpublic CompletionHandler<Response> getCompletionHandler()
SuspendContextResponse CompletionHandler.getCompletionHandler in interface SuspendContextResponse CompletionHandler.public TimeoutHandler getTimeoutHandler()
SuspendContextResponse TimeoutHandler.getTimeoutHandler in interface SuspendContextResponse TimeoutHandler.public long getTimeout(TimeUnit timeunit)
SuspendContextResponse timeout. If returned value less or equal
to zero - timeout is not set.getTimeout in interface SuspendContextResponse timeout. If returned value less or equal
to zero - timeout is not set.public void setTimeout(long timeout,
TimeUnit timeunit)
SuspendContextResponse timeout. If timeout value less or equal
to zero - suspended Response won't be never timed out.setTimeout in interface SuspendContexttimeout - the suspended Response timeout.timeunit - timeout units.public boolean isSuspended()
SuspendContextResponse is suspended, or
false otherwise.isSuspended in interface SuspendContextResponse is suspended, or
false otherwise.public SuspendStatus getSuspendStatus()
Copyright © 2013 Oracle Corporation. All Rights Reserved.