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 io.liveoak.stomp.client.protocol.MessageHandler.java

/**
 * @author Bob McWhirter
 * @author Ken Finnigan
 */
public class MessageHandler extends ChannelDuplexHandler {

From source file io.liveoak.stomp.client.protocol.ReceiptHandler.java

/**
 * @author Bob McWhirter
 */
public class ReceiptHandler extends ChannelDuplexHandler {

    public ReceiptHandler(Executor executor) {

From source file io.liveoak.stomp.server.protocol.StompErrorHandler.java

/**
 * @author Bob McWhirter
 */
public class StompErrorHandler extends ChannelDuplexHandler {

    private static final Logger log = Logger.getLogger(StompErrorHandler.class);

From source file io.moquette.server.netty.AutoFlushHandler.java

/**
 * Auto-flush data on channel after a read timeout.
 * It's inspired by IdleStateHandler but it's specialized version, just flushing data after
 * no read is done on the channel after a period. It's used to avoid aggressively flushing from
 * the ProtocolProcessor.
 */

From source file io.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 io.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 io.moquette.server.netty.metrics.MQTTMessageLogger.java

/**
 *
 * @author andrea
 */
@Sharable
public class MQTTMessageLogger extends ChannelDuplexHandler {

From source file io.moquette.server.netty.MoquetteIdleTimeoutHandler.java

@Sharable
class MoquetteIdleTimeoutHandler extends ChannelDuplexHandler {
    @Override
    public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception {
        if (evt instanceof IdleStateEvent) {
            IdleState e = ((IdleStateEvent) evt).state();

From source file io.moquette.server.netty.MoquetteIdleTimoutHandler.java

@Sharable
class MoquetteIdleTimoutHandler extends ChannelDuplexHandler {
    @Override
    public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception {
        if (evt instanceof IdleStateEvent) {
            IdleState e = ((IdleStateEvent) evt).state();

From source file io.netty.example.http2.helloworld.frame.server.HelloWorldHttp2Handler.java

/**
 * A simple handler that responds with the message "Hello World!".
 *
 * <p>This example is making use of the "frame codec" http2 API. This API is very experimental and incomplete.
 */
@Sharable