Example usage for io.netty.channel ChannelFutureListener interface-usage

List of usage examples for io.netty.channel ChannelFutureListener interface-usage

Introduction

In this page you can find the example usage for io.netty.channel ChannelFutureListener interface-usage.

Usage

From source file org.apache.jackrabbit.oak.plugins.segment.standby.client.FailedRequestListener.java

public class FailedRequestListener implements ChannelFutureListener {

    private final Promise<?> promise;

    public FailedRequestListener(Promise<?> promise) {
        this.promise = promise;

From source file org.asynchttpclient.netty.SimpleChannelFutureListener.java

public abstract class SimpleChannelFutureListener implements ChannelFutureListener {

    @Override
    public final void operationComplete(ChannelFuture future) throws Exception {
        Channel channel = future.channel();
        if (future.isSuccess()) {

From source file org.asynchttpclient.providers.netty.request.NettyConnectListener.java

/**
 * Non Blocking connect.
 */
final class NettyConnectListener<T> implements ChannelFutureListener {

    private final static Logger LOGGER = LoggerFactory.getLogger(NettyConnectListener.class);

From source file org.asynchttpclient.providers.netty4.NettyConnectListener.java

/**
 * Non Blocking connect.
 */
// FIXME Netty 3: NettyConnectListener don't need to be passed the request as
// the future has it too
final class NettyConnectListener<T> implements ChannelFutureListener {

From source file org.asynchttpclient.providers.netty4.request.NettyConnectListener.java

/**
 * Non Blocking connect.
 */
final class NettyConnectListener<T> implements ChannelFutureListener {

    private final static Logger LOGGER = LoggerFactory.getLogger(NettyConnectListener.class);

From source file org.asynchttpclient.providers.netty_4.NettyConnectListener.java

/**
 * Non Blocking connect.
 */
final class NettyConnectListener<T> implements ChannelFutureListener {
    private final static Logger logger = LoggerFactory.getLogger(NettyConnectListener.class);
    private final AsyncHttpClientConfig config;

From source file org.onosproject.ofagent.impl.OFConnectionHandler.java

/**
 * Implementation of OpenFlow connection handler.
 * It retries a connection for a certain amount of time and then give up.
 */
public final class OFConnectionHandler implements ChannelFutureListener {

From source file org.onosproject.ovsdb.controller.impl.ChannelConnectionListener.java

/**
 * The listener class. Handles when the node disconnect.
 */
public class ChannelConnectionListener implements ChannelFutureListener {

    private final OvsdbProviderService providerService;

From source file org.opendaylight.controller.netconf.netty.EchoClientHandler.java

/**
 * Handler implementation for the echo client.  It initiates the ping-pong
 * traffic between the echo client and server by sending the first message to
 * the server.
 */
public class EchoClientHandler extends ChannelInboundHandlerAdapter implements ChannelFutureListener {

From source file org.opendaylight.groupbasedpolicy.jsonrpc.JsonRpcEndpoint.java

/**
 *
 * This represents a JSONRPC connection between a {@link RpcServer}
 * and some client. The clients may connect and disconnect, so one
 * possible role that the JSONRPC endpoint can serve is to keep a long-lived
 * notion of a client, while maintaining connectivity as it comes and goes.