- Type Parameters:
T- the consumer type
- Enclosing class:
- ChannelWrapper
public static interface ChannelWrapper.Consumer<T>
Interface describing an object that consumes data from a byte buffer.
-
Method Summary
Modifier and TypeMethodDescriptionvoidconsume(ByteBuffer buffer) Consume some input from the given buffer.finish()Complete and optionally return a value to the holder of the key.
-
Method Details
-
consume
Consume some input from the given buffer.- Parameters:
buffer- the buffer to consume
-
finish
T finish()Complete and optionally return a value to the holder of the key.- Returns:
- reference to the object
-