public interface EngageListener<E extends Engagement>
Modifier and Type | Method and Description |
---|---|
void |
onCompleted(E engagement)
Notifies the listener that the request has completed.
|
void |
onError(java.lang.Throwable t)
Notifies the listener that an error has happened during the request.
|
void onCompleted(E engagement)
engagement
- the engagement with response attributesvoid onError(java.lang.Throwable t)
The error t
could be an IOException
if there was
a connectivity problem or a timeout, or an InterruptedException
if the request thread was interrupted during execution.
If this method is called onCompleted(Engagement)
will not be
called.
t
- the cause of the error