P
- the type of the object that represents the callback parametersR
- the type of the object that can be used to provide the callback response for the given
callback parameters asynchronously@FunctionalInterface public interface AsyncCallback<P,R extends AsyncCallbackAction> extends Callback
Modifier and Type | Method and Description |
---|---|
void |
on(P params,
R tell)
Invoked when the callback needs a response for the given callback parameters.
|
void on(P params, R tell)
params
- the object that represents the callback parameterstell
- the object that can be used to provide the callback response. One of its
methods must be invoked to provide the response. Once the response has been
provided, any call to the object methods will result in the IllegalStateException