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 Details

  • Constructor Details

    • WriteFutureListener

      public WriteFutureListener(Callback<List<ByteBuffer>> callback)
      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

      public void operationComplete(io.netty.channel.ChannelFuture future) throws Exception
      Specified by:
      operationComplete in interface io.netty.util.concurrent.GenericFutureListener<io.netty.channel.ChannelFuture>
      Throws:
      Exception