Interface WriteHandleFactory.WriteHandle

    • Method Detail

      • estimatedMaxBytesPerGatheringWrite

        default long estimatedMaxBytesPerGatheringWrite()
        Estimate the maximum number of bytes that can be written with one gathering write operation.
      • lastWrite

        boolean lastWrite​(long attemptedBytesWrite,
                          long actualBytesWrite,
                          int numMessagesWrite)
        Notify the WriteHandleFactory.WriteHandle of the last write operation and its result.
        Parameters:
        attemptedBytesWrite - The number of bytes the write operation did attempt to write.
        actualBytesWrite - The number of bytes from the previous write operation. This may be negative if a write error occurs.
        numMessagesWrite - The number of messages written.
        Returns:
        true if the write loop should continue writing, false otherwise.
      • writeComplete

        void writeComplete()
        Method that must be called once the write loop was completed.