Package org.apache.qpid.protonj2.buffer
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.
Functional interface for defining standard or commonly used consumers of the
 bytes provided by a 
ProtonBufferIterator.- 
Method SummaryModifier and TypeMethodDescriptionbooleanconsume(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- 
consumeboolean 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.
 
 
-