Class FileBufferedResponseHandler.FileBufferedInterceptor

    • Field Detail

      • MAX_MAPPED_BUFFER_SIZE

        private static final int MAX_MAPPED_BUFFER_SIZE
        See Also:
        Constant Field Values
      • _aggregating

        private java.lang.Boolean _aggregating
      • _filePath

        private java.nio.file.Path _filePath
      • _fileOutputStream

        private java.io.OutputStream _fileOutputStream
    • Method Detail

      • closeFileOutput

        private void closeFileOutput()
      • dispose

        protected void dispose()
      • write

        public void write​(java.nio.ByteBuffer content,
                          boolean last,
                          Callback callback)
        Description copied from interface: HttpOutput.Interceptor
        Write content. The response is committed by the first call to write and is closed by a call with last == true. Empty content buffers may be passed to force a commit or close.
        Specified by:
        write in interface HttpOutput.Interceptor
        Parameters:
        content - The content to be written or an empty buffer.
        last - True if this is the last call to write
        callback - The callback to use to indicate Callback.succeeded() or Callback.failed(Throwable).
      • aggregate

        private void aggregate​(java.nio.ByteBuffer content)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • commit

        private void commit​(Callback callback)