Class WriteStreamSubscriber<T extends io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>>

  • All Implemented Interfaces:
    Subscriber<java.nio.ByteBuffer>
    Direct Known Subclasses:
    HttpClientRequestSubscriber

    public class WriteStreamSubscriber<T extends io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>>
    extends java.lang.Object
    implements Subscriber<java.nio.ByteBuffer>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static long BUFF_SIZE  
      protected T stream  
    • Constructor Summary

      Constructors 
      Constructor Description
      WriteStreamSubscriber​(T stream)  
      WriteStreamSubscriber​(T stream, java.util.concurrent.CompletableFuture<io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>> cf)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onComplete()  
      void onError​(java.lang.Throwable t)  
      void onNext​(java.nio.ByteBuffer byteBuffer)  
      void onSubscribe​(Subscription subscription)  
      • Methods inherited from class java.lang.Object

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

      • stream

        protected T extends io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer> stream
    • Constructor Detail

      • WriteStreamSubscriber

        public WriteStreamSubscriber​(T stream)
      • WriteStreamSubscriber

        public WriteStreamSubscriber​(T stream,
                                     java.util.concurrent.CompletableFuture<io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>> cf)
    • Method Detail

      • onSubscribe

        public void onSubscribe​(Subscription subscription)
        Specified by:
        onSubscribe in interface Subscriber<T extends io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>>
      • onNext

        public void onNext​(java.nio.ByteBuffer byteBuffer)
        Specified by:
        onNext in interface Subscriber<T extends io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>>
      • onError

        public void onError​(java.lang.Throwable t)
        Specified by:
        onError in interface Subscriber<T extends io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>>
      • onComplete

        public void onComplete()
        Specified by:
        onComplete in interface Subscriber<T extends io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>>