T
- the type of the Captain Up Object. Should probably be some inherited more concrete type of CaptainUpObject
.public interface CaptainUpCallback<T extends CaptainUpObject>
Modifier and Type | Method and Description |
---|---|
void |
done(T result,
CaptainUpException error)
Notifies that the requested operation has finished and returns the result and\or the error
that was raised during the execution.
|
void done(T result, CaptainUpException error)
result
- the result of the operation. Might be null if the error
prevented any result
from returning.error
- contains an exception that prevented the request from completing successfully.
If null
, then the operation completed successfully.