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
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Subscription
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default Subscription
    Returns a new aggregate subscription whose unsubscribe() method calls unsubscribe() on both this subscription and other subscription.
    Returns a new aggregate subscription whose unsubscribe() method calls unsubscribe() on all arguments to this method.
    void
     
  • Field Details

  • Method Details

    • multi

      static Subscription multi(Subscription... subs)
      Returns a new aggregate subscription whose unsubscribe() method calls unsubscribe() on all arguments to this method.
    • unsubscribe

      void unsubscribe()
    • and

      default Subscription and(Subscription other)
      Returns a new aggregate subscription whose unsubscribe() method calls unsubscribe() on both this subscription and other subscription.