Class MaxMessagesWriteHandleFactory.MaxMessagesWriteHandle

    • Constructor Detail

      • MaxMessagesWriteHandle

        protected MaxMessagesWriteHandle​(int maxMessagesPerWrite)
    • Method Detail

      • lastWrite

        public boolean lastWrite​(long attemptedBytesWrite,
                                 long actualBytesWrite,
                                 int numMessagesWrite)
        Description copied from interface: WriteHandleFactory.WriteHandle
        Notify the WriteHandleFactory.WriteHandle of the last write operation and its result.
        Specified by:
        lastWrite in interface WriteHandleFactory.WriteHandle
        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.