Interface BlockHandler

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface BlockHandler
Function for handling a block of message fragments scanned from the log.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onBlock(DirectBuffer buffer, int offset, int length, int sessionId, int termId)
    Callback for handling a block of messages being read from a log.
  • Method Details

    • onBlock

      void onBlock(DirectBuffer buffer, int offset, int length, int sessionId, int termId)
      Callback for handling a block of messages being read from a log.
      Parameters:
      buffer - containing the block of message fragments.
      offset - at which the block begins, including any frame headers.
      length - of the block in bytes, including any frame headers that is aligned up to FrameDescriptor.FRAME_ALIGNMENT.
      sessionId - of the stream containing this block of message fragments.
      termId - of the stream containing this block of message fragments.