Class QuarkusMultipartFormUpload

  • All Implemented Interfaces:
    io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>, io.vertx.core.streams.StreamBase, Runnable

    public class QuarkusMultipartFormUpload
    extends Object
    implements io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>, Runnable
    based on MultipartFormUpload
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface Runnable
      • headers

        public io.vertx.core.MultiMap headers()
      • exceptionHandler

        public QuarkusMultipartFormUpload exceptionHandler​(io.vertx.core.Handler<Throwable> handler)
        Specified by:
        exceptionHandler in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
        Specified by:
        exceptionHandler in interface io.vertx.core.streams.StreamBase
      • handler

        public QuarkusMultipartFormUpload handler​(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> handler)
        Specified by:
        handler in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
      • pause

        public QuarkusMultipartFormUpload pause()
        Specified by:
        pause in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
      • fetch

        public io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> fetch​(long amount)
        Specified by:
        fetch in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
      • endHandler

        public QuarkusMultipartFormUpload endHandler​(io.vertx.core.Handler<Void> handler)
        Specified by:
        endHandler in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
      • pipe

        public io.vertx.core.streams.Pipe<io.vertx.core.buffer.Buffer> pipe()
        The reason we need a custom Pipe here is that if we don't manually throttle the read stream, the fact that the underlying connection is shared can lead to exhaustion of heap memory. See this for more details.
        Specified by:
        pipe in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>