Class ListenerToken

java.lang.Object
com.couchbase.lite.ListenerToken
All Implemented Interfaces:
AutoCloseable

public abstract class ListenerToken extends Object implements AutoCloseable
Base class for a removable subscription to an observable.
  • Constructor Details

    • ListenerToken

      protected ListenerToken(@Nullable Executor executor, @NonNull com.couchbase.lite.internal.utils.Fn.Consumer<ListenerToken> onRemove)
  • Method Details

    • toString

      @NonNull public String toString()
      Overrides:
      toString in class Object
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • remove

      public void remove()
    • send

      protected void send(@NonNull Runnable notification)