Package io.pravega.common.util
Interface BufferView.Collector<ExceptionT extends java.lang.Exception>
-
- Type Parameters:
ExceptionT- Type of exception that this function can throw.
- Enclosing interface:
- BufferView
- 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 BufferView.Collector<ExceptionT extends java.lang.Exception>Defines a collector function that can be applied to a ByteBuffer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaccept(java.nio.ByteBuffer buffer)Processes a ByteBuffer.
-
-
-
Method Detail
-
accept
void accept(java.nio.ByteBuffer buffer) throws ExceptionT extends java.lang.ExceptionProcesses a ByteBuffer.- Parameters:
buffer- The ByteBuffer.- Throws:
ExceptionT- (Optional) Any exception to throw.ExceptionT extends java.lang.Exception
-
-