public interface AsyncContextDelegate
AsyncContextDelegateProvider.AsyncContextDelegateProvider| Modifier and Type | Method and Description |
|---|---|
void |
complete()
Invoked upon a response writing completion when the response write is either committed or canceled.
|
void |
setSuspendTimeout(long timeOut,
TimeUnit timeUnit)
Invoked by the superior
ContainerResponseWriter responsible
for writing the response when new timeout values are to be set. |
void |
suspend(ContainerResponseWriter writer,
long timeOut,
TimeUnit timeUnit,
ContainerResponseWriter.TimeoutHandler timeoutHandler)
Invoked by the superior
ContainerResponseWriter responsible
for writing the response when processing is to be suspended. |
void suspend(ContainerResponseWriter writer, long timeOut, TimeUnit timeUnit, ContainerResponseWriter.TimeoutHandler timeoutHandler) throws IllegalStateException
ContainerResponseWriter responsible
for writing the response when processing is to be suspended.
An implementation can throw an UnsupportedOperationException if suspend is not supported (the default behavior).writer - response writer.timeOut - time-out value.timeUnit - time-out time unit.timeoutHandler - response writer time-out handler.IllegalStateExceptionContainerResponseWriter.suspend(long, java.util.concurrent.TimeUnit, org.glassfish.jersey.server.spi.ContainerResponseWriter.TimeoutHandler)void setSuspendTimeout(long timeOut,
TimeUnit timeUnit)
throws IllegalStateException
ContainerResponseWriter responsible
for writing the response when new timeout values are to be set.
An implementation can throw an UnsupportedOperationException if suspend is not supported (the default behavior).timeOut - new time-out value.timeUnit - new time-out time unit.IllegalStateExceptionContainerResponseWriter.setSuspendTimeout(long, java.util.concurrent.TimeUnit)void complete()
Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.