Class FlushOperation

  • Direct Known Subclasses:
    FlushReadyWrite

    public class FlushOperation
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      FlushOperation​(java.nio.ByteBuffer[] buffers, java.util.function.BiConsumer<java.lang.Void,​java.lang.Exception> listener)  
    • Method Summary

      Modifier and Type Method Description
      java.nio.ByteBuffer[] getBuffersToWrite()  
      java.nio.ByteBuffer[] getBuffersToWrite​(int maxBytes)  
      java.util.function.BiConsumer<java.lang.Void,​java.lang.Exception> getListener()  
      void incrementIndex​(int delta)  
      boolean isFullyFlushed()  
      • Methods inherited from class java.lang.Object

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

      • FlushOperation

        public FlushOperation​(java.nio.ByteBuffer[] buffers,
                              java.util.function.BiConsumer<java.lang.Void,​java.lang.Exception> listener)
    • Method Detail

      • getListener

        public java.util.function.BiConsumer<java.lang.Void,​java.lang.Exception> getListener()
      • isFullyFlushed

        public boolean isFullyFlushed()
      • incrementIndex

        public void incrementIndex​(int delta)
      • getBuffersToWrite

        public java.nio.ByteBuffer[] getBuffersToWrite()
      • getBuffersToWrite

        public java.nio.ByteBuffer[] getBuffersToWrite​(int maxBytes)