public interface MaybeCallback<T>
MaybeCallback interface represents an asynchronous callback that may or may not
occur.| Modifier and Type | Method and Description |
|---|---|
void |
onComplete()
Callback for when the request is executed but not successfully.
|
void |
onError(DomainException e)
Callback for when the request encounters an error.
|
void |
onSuccess(T t)
Callback for when the request is successfully executed.
|
void onSuccess(T t)
onError(com.microstrategy.usher.DomainException) or onComplete().t - the expected item returned by the requestvoid onComplete()
onError(com.microstrategy.usher.DomainException) or onSuccess(Object).void onError(DomainException e)
onSuccess(Object) or onComplete().e - See DomainException