public final class NettyConnectListener<T> extends SimpleChannelFutureListener
Constructor and Description |
---|
NettyConnectListener(NettyResponseFuture<T> future,
NettyRequestSender requestSender,
ChannelManager channelManager,
boolean channelPreempted,
Object partitionKey) |
Modifier and Type | Method and Description |
---|---|
void |
onFailure(io.netty.channel.Channel channel,
Throwable cause) |
void |
onSuccess(io.netty.channel.Channel channel) |
operationComplete
public NettyConnectListener(NettyResponseFuture<T> future, NettyRequestSender requestSender, ChannelManager channelManager, boolean channelPreempted, Object partitionKey)
public void onSuccess(io.netty.channel.Channel channel) throws Exception
onSuccess
in class SimpleChannelFutureListener
Exception
public void onFailure(io.netty.channel.Channel channel, Throwable cause) throws Exception
onFailure
in class SimpleChannelFutureListener
Exception
Copyright © 2015. All Rights Reserved.