@FunctionalInterface
protected static interface AsynchronousChannelStep.ChannelOperation<C extends java.nio.channels.AsynchronousChannel>
AsynchronousChannelStep.ChannelCallback
.Modifier and Type | Method and Description |
---|---|
boolean |
execute(int nBytesProcessed,
C rChannel,
java.nio.ByteBuffer rData,
AsynchronousChannelStep.ChannelCallback<java.lang.Integer,C> rCallback)
Performs an asnychronous channel operation if necessary or returns
FALSE.
|
boolean execute(int nBytesProcessed, C rChannel, java.nio.ByteBuffer rData, AsynchronousChannelStep.ChannelCallback<java.lang.Integer,C> rCallback) throws java.lang.Exception
nBytesProcessed
- The number of bytes that have been processed
by a previous invocationrChannel
- The channel to perform the operation onrData
- The byte buffer for the operation datarCallback
- The callback to be invoked (recursively) upon
completion of the operationjava.lang.Exception
- Any kind of exception may be thrown