Class MaxMessagesReadHandleFactory.MaxMessageReadHandle

    • Constructor Detail

      • MaxMessageReadHandle

        protected MaxMessageReadHandle​(int maxMessagesPerRead)
    • Method Detail

      • lastRead

        public boolean lastRead​(int attemptedBytesRead,
                                int actualBytesRead,
                                int numMessagesRead)
        Description copied from interface: ReadHandleFactory.ReadHandle
        Notify the ReadHandleFactory.ReadHandle of the last read operation and its result.
        Specified by:
        lastRead in interface ReadHandleFactory.ReadHandle
        Parameters:
        attemptedBytesRead - The number of bytes the read operation did attempt to read.
        actualBytesRead - The number of bytes from the previous read operation. This may be negative if a read error occurs.
        numMessagesRead - The number of messages read.
        Returns:
        true if the read loop should continue reading, false otherwise.