Class BufferBridge

  • Direct Known Subclasses:
    LocalHttpClientRequest, LocalHttpServerResponse

    public class BufferBridge
    extends java.lang.Object
    Support class bridging a buffer writer and dataHandler / endHandler pair.
    Author:
    https://github.com/lbovet [Laurent Bovet]
    • Constructor Summary

      Constructors 
      Constructor Description
      BufferBridge​(io.vertx.core.Vertx vertx)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void doEnd()  
      protected void doWrite​(io.vertx.core.buffer.Buffer chunk)  
      protected void pump()  
      void setDataHandler​(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> dataHandler)  
      void setEndHandler​(io.vertx.core.Handler<java.lang.Void> endHandler)  
      void setExceptionHandler​(io.vertx.core.Handler<java.lang.Throwable> exceptionHandler)  
      • Methods inherited from class java.lang.Object

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

      • BufferBridge

        public BufferBridge​(io.vertx.core.Vertx vertx)
    • Method Detail

      • pump

        protected void pump()
      • doWrite

        protected void doWrite​(io.vertx.core.buffer.Buffer chunk)
      • doEnd

        protected void doEnd()
      • setDataHandler

        public void setDataHandler​(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> dataHandler)
      • setExceptionHandler

        public void setExceptionHandler​(io.vertx.core.Handler<java.lang.Throwable> exceptionHandler)
      • setEndHandler

        public void setEndHandler​(io.vertx.core.Handler<java.lang.Void> endHandler)