Class CountingReadableByteChannel
java.lang.Object
org.apache.beam.sdk.extensions.gcp.util.channels.CountingReadableByteChannel
- All Implemented Interfaces:
 Closeable,AutoCloseable,Channel,ReadableByteChannel
- 
Constructor Summary
ConstructorsConstructorDescriptionCountingReadableByteChannel(ReadableByteChannel delegate, Consumer<Integer> bytesReadConsumer)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static CountingReadableByteChannelcreateWithNoOpConsumer(ReadableByteChannel delegate) booleanisOpen()intread(ByteBuffer dst)  
- 
Constructor Details
- 
CountingReadableByteChannel
public CountingReadableByteChannel(ReadableByteChannel delegate, Consumer<Integer> bytesReadConsumer)  
 - 
 - 
Method Details
- 
createWithNoOpConsumer
 - 
read
- Specified by:
 readin interfaceReadableByteChannel- Throws:
 IOException
 - 
isOpen
public boolean isOpen() - 
close
- Specified by:
 closein interfaceAutoCloseable- Specified by:
 closein interfaceChannel- Specified by:
 closein interfaceCloseable- Throws:
 IOException
 
 -