List of usage examples for io.netty.channel ChannelDuplexHandler subclass-usage
From source file org.dynjs.debugger.agent.handlers.DebugHandler.java
/** * @author Bob McWhirter */ public class DebugHandler extends ChannelDuplexHandler { private final String name;
From source file org.eclipse.californium.elements.tcp.CloseOnIdleHandler.java
/** * Channel handler that closes connection if an idle event was raised. */ class CloseOnIdleHandler extends ChannelDuplexHandler { private final static Logger LOGGER = LoggerFactory.getLogger(CloseOnIdleHandler.class.getName());
From source file org.eclipse.moquette.server.netty.metrics.BytesMetricsHandler.java
public class BytesMetricsHandler extends ChannelDuplexHandler { private static final AttributeKey<BytesMetrics> ATTR_KEY_METRICS = AttributeKey.valueOf("BytesMetrics"); private BytesMetricsCollector m_collector;
From source file org.eclipse.moquette.server.netty.metrics.MessageMetricsHandler.java
public class MessageMetricsHandler extends ChannelDuplexHandler { private static final AttributeKey<MessageMetrics> ATTR_KEY_METRICS = AttributeKey.valueOf("MessageMetrics"); private MessageMetricsCollector m_collector;
From source file org.eclipse.moquette.server.netty.MoquetteIdleTimoutHandler.java
class MoquetteIdleTimoutHandler extends ChannelDuplexHandler { @Override public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception { if (evt instanceof IdleStateEvent) { IdleState e = ((IdleStateEvent) evt).state(); if (e == IdleState.ALL_IDLE) {
From source file org.eclipse.neoscada.protocol.iec60870.apci.MessageChannel.java
public class MessageChannel extends ChannelDuplexHandler { private final static Logger logger = LoggerFactory.getLogger(MessageChannel.class); private ChannelHandlerContext ctx; private final ProtocolOptions options;
From source file org.eclipse.scada.protocol.iec60870.apci.MessageChannel.java
public class MessageChannel extends ChannelDuplexHandler { private final static Logger logger = LoggerFactory.getLogger(MessageChannel.class); private ChannelHandlerContext ctx; private final ProtocolOptions options;
From source file org.eclipse.scada.protocol.relp.FrameCodec.java
public class FrameCodec extends ChannelDuplexHandler { public static enum State { TXNR, COMMAND, LENGTH, DATA, TRAILER } private static final AttributeKey<State> ATTR_STATE = AttributeKey.valueOf("relp.frame.state");
From source file org.eclipse.scada.protocol.relp.FrameProcessor.java
public class FrameProcessor extends ChannelDuplexHandler { private static final Charset CHARSET_OPEN = StandardCharsets.US_ASCII; @Override public void channelRead(final ChannelHandlerContext ctx, final Object msg) throws Exception {
From source file org.eclipse.scada.protocol.relp.RelpExceptionHandler.java
public class RelpExceptionHandler extends ChannelDuplexHandler { private final static Logger logger = LoggerFactory.getLogger(RelpExceptionHandler.class); @Override public void exceptionCaught(final ChannelHandlerContext ctx, final Throwable cause) throws Exception { logger.warn("Exception caught", cause);