Interface ProtonBufferIterator.ByteConsumer

Enclosing interface:
ProtonBufferIterator
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 static interface ProtonBufferIterator.ByteConsumer
Functional interface for defining standard or commonly used consumers of the bytes provided by a ProtonBufferIterator.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    consume(byte value)
    Consume one byte and return true if another should be provided or if the consumer has finished or encountered some error during iteration.
  • Method Details

    • consume

      boolean consume(byte value)
      Consume one byte and return true if another should be provided or if the consumer has finished or encountered some error during iteration.
      Parameters:
      value - The byte value consumed from the source buffer iterator
      Returns:
      true if another byte should be provided or false if done.