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
All Methods Instance Methods Concrete 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.-
Methods inherited from class io.ably.lib.util.Multicaster
add, clear, getMembers, isEmpty, remove, size
-
-
-
-
Constructor Detail
-
Multicaster
public Multicaster(CompletionListener... members)
-
-
Method Detail
-
onSuccess
public void onSuccess()
Description copied from interface:CompletionListenerCalled when the associated operation completes successfully.- Specified by:
onSuccessin interfaceCompletionListener
-
onError
public void onError(ErrorInfo reason)
Description copied from interface:CompletionListenerCalled when the associated operation completes with an error.- Specified by:
onErrorin interfaceCompletionListener- Parameters:
reason- information about the error.
-
-