Package com.couchbase.lite
Class ListenerToken
java.lang.Object
com.couchbase.lite.ListenerToken
- All Implemented Interfaces:
AutoCloseable
Base class for a removable subscription to an observable.
-
Constructor Summary
ModifierConstructorDescriptionprotected
ListenerToken
(Executor executor, com.couchbase.lite.internal.utils.Fn.Consumer<ListenerToken> onRemove) -
Method Summary
-
Constructor Details
-
ListenerToken
protected ListenerToken(@Nullable Executor executor, @NonNull com.couchbase.lite.internal.utils.Fn.Consumer<ListenerToken> onRemove)
-
-
Method Details
-
toString
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
remove
public void remove() -
send
-