Interface Subscription

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Subscription
Represents a subscription that may need to be canceled later.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cancels this Subscription and thus unlinks the involved instances.
  • Method Details

    • cancel

      void cancel()
      Cancels this Subscription and thus unlinks the involved instances.

      After that, it’s best to forget about this Subscription (no longer refer it)!