|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.http.server.Response.SuspendedContextImpl
public final class Response.SuspendedContextImpl
| Constructor Summary | |
|---|---|
Response.SuspendedContextImpl()
|
|
| Method Summary | |
|---|---|
CompletionHandler<Response> |
getCompletionHandler()
Get the suspended Response CompletionHandler. |
SuspendStatus |
getSuspendStatus()
|
long |
getTimeout(java.util.concurrent.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,
java.util.concurrent.TimeUnit timeunit)
Set the suspended Response timeout. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Response.SuspendedContextImpl()
| Method Detail |
|---|
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 java.io.IOException
onClosed in interface Connection.CloseListenerjava.io.IOExceptionpublic CompletionHandler<Response> getCompletionHandler()
SuspendContextResponse CompletionHandler.
getCompletionHandler in interface SuspendContextResponse CompletionHandler.public TimeoutHandler getTimeoutHandler()
SuspendContextResponse TimeoutHandler.
getTimeoutHandler in interface SuspendContextResponse TimeoutHandler.public long getTimeout(java.util.concurrent.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,
java.util.concurrent.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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||