|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AsyncContextDelegate
Utilized by the Servlet container response writer to deal with the container async features.
Individual instances are created by AsyncContextDelegateProvider.
AsyncContextDelegateProvider| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||