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 gedi.remote.ConfigLoggingHandler.java

/**
 * A {@link ChannelHandler} that logs all events using a logging framework.
 * By default, all events are logged at <tt>DEBUG</tt> level.
 */
@Sharable
public class ConfigLoggingHandler extends ChannelDuplexHandler {

From source file in.voidma.lemming.traffic.TrafficDropHandler.java

/**
 * TODO: Fill out javaDoc coment for in.voidma.lemming.internal.client.traffic:TrafficDropHandler
 *
 * @author NthTensor
 * @version 1.0
 * @since 2017-04-26

From source file in.voidma.lemming.traffic.TrafficLatencyHandler.java

/**
 * TODO: Fill out javaDoc coment for in.voidma.lemming.internal.client:LatencySimulator
 *
 * @author NthTensor
 * @version 1.0
 * @since 2017-04-26

From source file io.advantageous.conekt.net.impl.ConektHandler.java

/**
 * @author <a href="mailto:nmaurer@redhat.com">Norman Maurer</a>
 */
public abstract class ConektHandler<C extends ConnectionBase> extends ChannelDuplexHandler {

    protected static ByteBuf safeBuffer(ByteBuf buf, ByteBufAllocator allocator) {

From source file io.airlift.drift.transport.netty.client.ThriftClientHandler.java

@ThreadSafe
public class ThriftClientHandler extends ChannelDuplexHandler {
    private static final int ONEWAY_SEQUENCE_ID = 0xFFFF_FFFF;

    private final Duration requestTimeout;
    private final Transport transport;

From source file io.airlift.drift.transport.netty.codec.HeaderCodec.java

public class HeaderCodec extends ChannelDuplexHandler {
    @Override
    public void channelRead(ChannelHandlerContext context, Object message) {
        if (message instanceof ByteBuf) {
            ByteBuf request = (ByteBuf) message;
            if (request.isReadable()) {

From source file io.airlift.drift.transport.netty.codec.SimpleFrameCodec.java

public class SimpleFrameCodec extends ChannelDuplexHandler {
    private final Transport transport;
    private final Protocol protocol;
    private final boolean assumeClientsSupportOutOfOrderResponses;

    public SimpleFrameCodec(Transport transport, Protocol protocol,

From source file io.airlift.drift.transport.netty.server.ResponseOrderingHandler.java

public class ResponseOrderingHandler extends ChannelDuplexHandler {
    @Override
    public void channelRead(ChannelHandlerContext context, Object message) {
        if (message instanceof ThriftFrame) {
            ThriftFrame thriftFrame = (ThriftFrame) message;
            if (!thriftFrame.isSupportOutOfOrderResponse()) {

From source file io.airlift.drift.transport.netty.server.ThriftServerHandler.java

public class ThriftServerHandler extends ChannelDuplexHandler {
    private static final Logger log = Logger.get(ThriftServerHandler.class);

    private static final Pattern CONNECTION_CLOSED_MESSAGE = Pattern
            .compile("^.*(?:connection.*(?:reset|closed|abort|broken)|broken.*pipe).*$", CASE_INSENSITIVE);

From source file io.airlift.drift.transport.netty.ThriftClientHandler.java

@ThreadSafe
class ThriftClientHandler extends ChannelDuplexHandler {
    private static final int ONEWAY_SEQUENCE_ID = 0xFFFF_FFFF;

    private final Duration requestTimeout;
    private final MessageEncoding messageEncoding;