Package io.ably.lib.realtime
Interface CompletionListener
-
- All Known Implementing Classes:
CompletionListener.FromCallback,CompletionListener.Multicaster
public interface CompletionListenerAn interface allowing a client to be notified of the outcome of an asynchronous operation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classCompletionListener.FromCallbackstatic classCompletionListener.MulticasterA Multicaster instance is used in the Ably library to manage a list of client listeners against certain operations.static classCompletionListener.ToCallback
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonError(ErrorInfo reason)Called when the associated operation completes with an error.voidonSuccess()Called when the associated operation completes successfully.
-
-
-
Method Detail
-
onSuccess
void onSuccess()
Called when the associated operation completes successfully.
-
onError
void onError(ErrorInfo reason)
Called when the associated operation completes with an error.- Parameters:
reason- information about the error.
-
-