Package org.apache.avro.ipc.netty
Class NettyTransceiver.WriteFutureListener
java.lang.Object
org.apache.avro.ipc.netty.NettyTransceiver.WriteFutureListener
- All Implemented Interfaces:
io.netty.channel.ChannelFutureListener
,io.netty.util.concurrent.GenericFutureListener<io.netty.channel.ChannelFuture>
,EventListener
- Enclosing class:
NettyTransceiver
protected static class NettyTransceiver.WriteFutureListener
extends Object
implements io.netty.channel.ChannelFutureListener
A ChannelFutureListener for channel write operations that notifies a
Callback
if an error occurs while writing to the channel.-
Field Summary
FieldsFields inherited from interface io.netty.channel.ChannelFutureListener
CLOSE, CLOSE_ON_FAILURE, FIRE_EXCEPTION_ON_FAILURE
-
Constructor Summary
ConstructorsConstructorDescriptionWriteFutureListener
(Callback<List<ByteBuffer>> callback) Creates a WriteFutureListener that notifies the given callback if an error occurs writing data to the channel. -
Method Summary
-
Field Details
-
callback
-
-
Constructor Details
-
WriteFutureListener
Creates a WriteFutureListener that notifies the given callback if an error occurs writing data to the channel.- Parameters:
callback
- the callback to notify, or null to skip notification.
-
-
Method Details
-
operationComplete
- Specified by:
operationComplete
in interfaceio.netty.util.concurrent.GenericFutureListener<io.netty.channel.ChannelFuture>
- Throws:
Exception
-