Class WriteFlusher.PendingState

  • Enclosing class:
    WriteFlusher

    private class WriteFlusher.PendingState
    extends WriteFlusher.State
    In PendingState not all buffers could be written in one go. Then write() will switch to PendingState() and preserve the state by creating a new PendingState object with the given parameters.
    • Field Detail

      • _callback

        private final Callback _callback
      • _buffers

        private final java.nio.ByteBuffer[] _buffers
    • Constructor Detail

      • PendingState

        private PendingState​(java.nio.ByteBuffer[] buffers,
                             Callback callback)
    • Method Detail

      • getBuffers

        public java.nio.ByteBuffer[] getBuffers()