Class VeniceChunkedResponse

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.concurrent.CompletableFuture<java.lang.Long> write​(io.netty.buffer.ByteBuf buffer)  
      java.util.concurrent.CompletableFuture<java.lang.Long> write​(io.netty.buffer.ByteBuf buffer, CompressionStrategy compression)
      This function is used to send a data chunk to Venice Client.
      java.util.concurrent.CompletableFuture<java.lang.Long> write​(io.netty.buffer.ByteBuf byteBuf, CompressionStrategy compression, StreamingCallback<java.lang.Long> callback)
      This function is used to send a data chunk to Venice Client, and when it is completed, 'callback' will be invoked.
      • Methods inherited from class java.lang.Object

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

      • EMPTY_BYTE_BUF

        public static final io.netty.buffer.ByteBuf EMPTY_BYTE_BUF
    • Method Detail

      • write

        public java.util.concurrent.CompletableFuture<java.lang.Long> write​(io.netty.buffer.ByteBuf buffer)
      • write

        public java.util.concurrent.CompletableFuture<java.lang.Long> write​(io.netty.buffer.ByteBuf buffer,
                                                                            CompressionStrategy compression)
        This function is used to send a data chunk to Venice Client.
        Parameters:
        buffer -
        compression -
      • write

        public java.util.concurrent.CompletableFuture<java.lang.Long> write​(io.netty.buffer.ByteBuf byteBuf,
                                                                            CompressionStrategy compression,
                                                                            StreamingCallback<java.lang.Long> callback)
        This function is used to send a data chunk to Venice Client, and when it is completed, 'callback' will be invoked.
        Parameters:
        byteBuf -
        compression -
        callback -
        Returns: