public interface ResumeCallback
asynchronous response resume events.
A resume callback may receive resume events (from an asynchronous response the callback was registered with) as a result of one of the following actions:
AsyncResponse.resume(Object) or AsyncResponse.resume(Throwable)
methodunhandled suspend time-out event has occurred
resulting in an asynchronous response instance being resumed with a default
time-out exceptionResumeCallback interface will be invoked before any response processing is started,
e.g. before any exception mapping or response filtering occurs.
| Modifier and Type | Method and Description |
|---|---|
void |
onResume(AsyncResponse resuming,
Response response)
A resume callback notification method that will be invoked when the asynchronous
response is about to be resumed with a JAX-RS response instance.
|
void |
onResume(AsyncResponse resuming,
Throwable error)
A resume callback notification method that will be invoked in case the asynchronous
response is being resumed by an error (e.g.
|
void onResume(AsyncResponse resuming, Response response)
Callback implementations may use check whether resuming asynchronous response
has been cancelled or not. In case of cancellation,
the JAX-RS response will be the request cancellation response sent back to the client
(see AsyncResponse.cancel()).
resuming - asynchronous response to be resumed.response - response used to resume the asynchronous response.void onResume(AsyncResponse resuming, Throwable error)
resuming - asynchronous response to be resumed.error - error used to resume the asynchronous response.Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.