|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResumeCallback
Asynchronous request processing lifecycle callback that receives suspended
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.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||