List of usage examples for io.netty.channel ChannelDuplexHandler subclass-usage
From source file com.github.milenkovicm.kafka.handler.AbstractProducerHandler.java
public abstract class AbstractProducerHandler extends ChannelDuplexHandler { final int timeout; final int ack; // cache topic and clientid byte representation // no need to encode it every time
From source file com.github.milenkovicm.kafka.handler.MetadataHandler.java
public class MetadataHandler extends ChannelDuplexHandler { private static final Logger LOGGER = LoggerFactory.getLogger(MetadataHandler.class); final String clientId; final byte[] clientIdEncoded; final Map<Integer, KafkaPromise> acks = new HashMap<>();
From source file com.github.milenkovicm.kafka.handler.MetricHandler.java
@ChannelHandler.Sharable public class MetricHandler extends ChannelDuplexHandler { public static final MetricRegistry metricRegistry = new MetricRegistry(); public static final JmxReporter jmxReporter = JmxReporter.forRegistry(metricRegistry).build();
From source file com.github.mrstampy.gameboot.netty.AbstractNettyMessageHandler.java
/**
* This class is the superclass for last-in-pipeline GameBoot Netty handlers.
* Messages are presumed to have been converted to JSON strings representing an
* {@link AbstractGameBootMessage} and are processed by the
* {@link GameBootMessageController}. Channels are added to the
* {@link MessagingGroups#ALL} group and registering the channel against the
From source file com.github.mrstampy.gameboot.otp.netty.client.ClientHandler.java
/** * The Class ClientHandler. */ @Sharable public class ClientHandler extends ChannelDuplexHandler { private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
From source file com.github.nettybook.ch0.LoggingHandler.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 LoggingHandler extends ChannelDuplexHandler {
From source file com.github.spapageo.jannel.channel.MessageLogger.java
/** * Logs all the message that are either sent or received */ @ChannelHandler.Sharable public class MessageLogger extends ChannelDuplexHandler {
From source file com.google.cloud.pubsub.proxy.moquette.MoquetteIdleTimeoutHandler.java
/** * Timeout Handler class for the Moquette Server. */ public class MoquetteIdleTimeoutHandler extends ChannelDuplexHandler { @Override public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception {
From source file com.heliosapm.streams.metrichub.tsdbclient.ConnectionManager.java
/**
* <p>Title: ConnectionManager</p>
* <p>Description: Manages http stack for querying OpenTSDB</p>
* <p>Company: Helios Development Group LLC</p>
* @author Whitehead (nwhitehead AT heliosdev DOT org)
* <p><code>com.heliosapm.streams.metrichub.tsdbclient.ConnectionManager</code></p>
From source file com.heliosapm.streams.onramp.ConnectionManager.java
/**
* <p>Title: ConnectionManager</p>
* <p>Description: </p>
* <p>Company: Helios Development Group LLC</p>
* @author Whitehead (nwhitehead AT heliosdev DOT org)
* <p><code>com.heliosapm.streams.onramp.ConnectionManager</code></p>