|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InvocationCallback
Request transformation callback used by a request invoker
to provide asynchronous notifications about the request processing.
| Method Summary | |
|---|---|
void |
cancelled()
Request processing cancel event notification. |
void |
failure(java.lang.Throwable exception)
A request-to-response transformation failure event notification. |
void |
result(Response response)
A successful request-to-response transformation event notification. |
void |
resumed()
Request processing resume event notification. |
void |
suspended(long time,
java.util.concurrent.TimeUnit unit,
InvocationContext context)
Request processing suspend event notification. |
void |
suspendTimeoutChanged(long time,
java.util.concurrent.TimeUnit unit)
Request processing suspend timeout change event notification. |
| Method Detail |
|---|
void suspended(long time,
java.util.concurrent.TimeUnit unit,
InvocationContext context)
Request invoker invokes the suspended(...)
callback method when it receives an instruction to suspend the current
request processing via one of the invocation
context suspend(...) methods.
time - suspend time-out value.unit - suspend time-out time unit.context - suspended invocation context.
void suspendTimeoutChanged(long time,
java.util.concurrent.TimeUnit unit)
Request invoker invokes the
suspendTimeoutChanged(...) callback method when it receives an
instruction to update the timeout value for the current (suspended)
request.
time - new suspend time-out value.unit - new suspend time-out time unit.void resumed()
Request invoker invokes the resumed()
callback method when it receives an instruction to resume the current
suspended request processing via one of the invocation context resume(...) methods.
Note that the resumed() callback method will not be invoked in
case the invocation context has not been in a suspended state when the
resume(...) method was invoked.
void cancelled()
Request invoker invokes the cancelled()
callback method when it receives an instruction to cancel the current
request processing via invocation context cancel() method.
void result(Response response)
response - transformation result.void failure(java.lang.Throwable exception)
exception - exception describing the failure.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||