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.
|
default boolean |
isCompleted()
Return
true when the AsyncContext is completed, such as when complete() has been called. |
void |
suspend()
Invoked by the superior
ContainerResponseWriter responsible for writing the response when processing is to be
suspended. |
void suspend()
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).IllegalStateException - if underlying servlet request throws an exception.ContainerResponseWriter.suspend(long, java.util.concurrent.TimeUnit, org.glassfish.jersey.server.spi.ContainerResponseWriter.TimeoutHandler)void complete()
default boolean isCompleted()
Return true when the AsyncContext is completed, such as when complete() has been called.
For compatibility, the default is false.
true when the AsyncContext is completed.Copyright © 2007-2024,Oracleand/or its affiliates.All Rights Reserved. Use is subject to license terms.