Example usage for io.netty.channel ChannelDuplexHandler subclass-usage

List of usage examples for io.netty.channel ChannelDuplexHandler subclass-usage

Introduction

In this page you can find the example usage for io.netty.channel ChannelDuplexHandler subclass-usage.

Usage

From source file network.thunder.core.communication.nio.handler.low.PingHandler.java

public class PingHandler extends ChannelDuplexHandler {

    static final long PING_INTERVAL = 10 * 1000;
    static final long TIMEOUT = 30 * 1000;

    long lastMessageSent = System.currentTimeMillis();

From source file org.apache.activemq.artemis.core.remoting.impl.netty.ActiveMQChannelHandler.java

/**
 * Common handler implementation for client and server side handler.
 */
public class ActiveMQChannelHandler extends ChannelDuplexHandler {
    private final ChannelGroup group;

From source file org.apache.activemq.artemis.core.remoting.impl.netty.HttpAcceptorHandler.java

/**
 * Ensures that every request has a response and also that any uninitiated responses always wait for
 * a response.
 */
public class HttpAcceptorHandler extends ChannelDuplexHandler {
    private final BlockingQueue<ResponseHolder> responses = new LinkedBlockingQueue<ResponseHolder>();

From source file org.apache.activemq.core.remoting.impl.netty.ActiveMQChannelHandler.java

/**
 * Common handler implementation for client and server side handler.
 *
 * @author <a href="mailto:tlee@redhat.com">Trustin Lee</a>
 * @author <a href="mailto:nmaurer@redhat.com">Norman Maurer</a>
 * @version $Rev$, $Date$

From source file org.apache.activemq.core.remoting.impl.netty.HttpAcceptorHandler.java

/**
 * Ensures that every request has a response and also that any uninitiated responses always wait for
 * a response.
 * @author <a href="mailto:andy.taylor@jboss.org">Andy Taylor</a>
 */
public class HttpAcceptorHandler extends ChannelDuplexHandler {

From source file org.apache.cxf.transport.http.netty.client.NettyHttpClientHandler.java

public class NettyHttpClientHandler extends ChannelDuplexHandler {
    private final BlockingQueue<NettyHttpClientRequest> sendedQueue = new LinkedBlockingDeque<NettyHttpClientRequest>();

    @Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {

From source file org.apache.dubbo.remoting.transport.netty4.NettyClientHandler.java

/**
 * NettyClientHandler
 */
@io.netty.channel.ChannelHandler.Sharable
public class NettyClientHandler extends ChannelDuplexHandler {
    private static final Logger logger = LoggerFactory.getLogger(NettyClientHandler.class);

From source file org.apache.dubbo.remoting.transport.netty4.NettyServerHandler.java

/**
 * NettyServerHandler.
 */
@io.netty.channel.ChannelHandler.Sharable
public class NettyServerHandler extends ChannelDuplexHandler {
    private static final Logger logger = LoggerFactory.getLogger(NettyServerHandler.class);

From source file org.apache.dubbo.rpc.protocol.dubbo.decode.MockHandler.java

public class MockHandler extends ChannelDuplexHandler {
    private final Consumer consumer;

    private final ChannelHandler handler;

    public MockHandler(Consumer consumer, ChannelHandler handler) {

From source file org.apache.hadoop.hbase.ipc.BufferCallBeforeInitHandler.java

/**
 * We will expose the connection to upper layer before initialized, so we need to buffer the calls
 * passed in and write them out once the connection is established.
 */
@InterfaceAudience.Private
class BufferCallBeforeInitHandler extends ChannelDuplexHandler {