Class DelegatingSubscription

  • All Implemented Interfaces:
    org.reactivestreams.Subscription

    @PublicApi
    public class DelegatingSubscription
    extends java.lang.Object
    implements org.reactivestreams.Subscription
    A simple subscription that delegates to another
    • Constructor Summary

      Constructors 
      Constructor Description
      DelegatingSubscription​(org.reactivestreams.Subscription upstreamSubscription)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cancel()  
      org.reactivestreams.Subscription getUpstreamSubscription()
      Get instance of upstreamSubscription
      void request​(long n)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DelegatingSubscription

        public DelegatingSubscription​(org.reactivestreams.Subscription upstreamSubscription)
    • Method Detail

      • request

        public void request​(long n)
        Specified by:
        request in interface org.reactivestreams.Subscription
      • cancel

        public void cancel()
        Specified by:
        cancel in interface org.reactivestreams.Subscription
      • getUpstreamSubscription

        public org.reactivestreams.Subscription getUpstreamSubscription()
        Get instance of upstreamSubscription
        Returns:
        Subscription