Package io.ably.lib.realtime
Class CompletionListener.Multicaster
java.lang.Object
io.ably.lib.util.Multicaster<CompletionListener>
io.ably.lib.realtime.CompletionListener.Multicaster
- All Implemented Interfaces:
CompletionListener
- Enclosing interface:
- CompletionListener
public static class CompletionListener.Multicaster extends Multicaster<CompletionListener> implements CompletionListener
A Multicaster instance is used in the Ably library to manage a list
of client listeners against certain operations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.ably.lib.realtime.CompletionListener
CompletionListener.FromCallback, CompletionListener.Multicaster, CompletionListener.ToCallback -
Constructor Summary
Constructors Constructor Description Multicaster(CompletionListener... members) -
Method Summary
Methods inherited from class io.ably.lib.util.Multicaster
add, clear, getMembers, isEmpty, remove, size
-
Constructor Details
-
Method Details
-
onSuccess
public void onSuccess()Description copied from interface:CompletionListenerCalled when the associated operation completes successfully.- Specified by:
onSuccessin interfaceCompletionListener
-
onError
Description copied from interface:CompletionListenerCalled when the associated operation completes with an error.- Specified by:
onErrorin interfaceCompletionListener- Parameters:
reason- information about the error.
-