List of usage examples for io.netty.channel ChannelInboundHandlerAdapter subclass-usage
From source file com.github.http.helloworld.HttpHelloWorldServerHandler.java
public class HttpHelloWorldServerHandler extends ChannelInboundHandlerAdapter { private static final byte[] CONTENT = { 'H', 'e', 'l', 'l', 'o', ' ', 'W', 'o', 'r', 'l', 'd' }; @Override public void channelReadComplete(ChannelHandlerContext ctx) { ctx.flush();
From source file com.github.jaapterwoerds.jfall.chat.ChatServerHandler.java
/**
* This handler implements the behaviour of a simplified chat room. All currently active channels are added to a
* {@link ChannelGroup} and incoming messages are broadcasted to all currently active channels.
*
* @author Jaap ter Woerds
*/
From source file com.github.milenkovicm.kafka.handler.TerminalHandler.java
public class TerminalHandler extends ChannelInboundHandlerAdapter { private static final Logger LOGGER = LoggerFactory.getLogger(TerminalHandler.class); @Override public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception { if (msg instanceof ByteBuf) {
From source file com.github.netfreer.shadowducks.client.handler.DirectClientHandler.java
public final class DirectClientHandler extends ChannelInboundHandlerAdapter { private final Promise<Channel> promise; public DirectClientHandler(Promise<Channel> promise) { this.promise = promise;
From source file com.github.netfreer.shadowducks.client.handler.RelayHandler.java
public final class RelayHandler extends ChannelInboundHandlerAdapter { private final Channel relayChannel; public RelayHandler(Channel relayChannel) { this.relayChannel = relayChannel;
From source file com.github.nettybook.ch3.EchoClientHandler.java
/** * Handler implementation for the echo client. It initiates the ping-pong * traffic between the echo client and server by sending the first message to * the server. */ public class EchoClientHandler extends ChannelInboundHandlerAdapter {
From source file com.github.nettybook.ch4.EchoClientHandler2.java
/** * Handler implementation for the echo client. It initiates the ping-pong * traffic between the echo client and server by sending the first message to * the server. */ public class EchoClientHandler2 extends ChannelInboundHandlerAdapter {
From source file com.github.sinsinpub.pero.backend.DirectClientHandler.java
public final class DirectClientHandler extends ChannelInboundHandlerAdapter { private final Promise<Channel> promise; public DirectClientHandler(Promise<Channel> promise) { this.promise = promise;
From source file com.github.sinsinpub.pero.backend.RelayTrafficHandler.java
public final class RelayTrafficHandler extends ChannelInboundHandlerAdapter { private static final Logger logger = LoggerFactory.getLogger(RelayTrafficHandler.class); private final Channel relayChannel; private MessageSizeEstimator.Handle estimatorHandle; private final AtomicLong readBytes = new AtomicLong();
From source file com.github.sparkfy.network.util.TransportFrameDecoder.java
/**
* A customized frame decoder that allows intercepting raw data.
* <p>
* This behaves like Netty's frame decoder (with harcoded parameters that match this library's
* needs), except it allows an interceptor to be installed to read data directly before it's
* framed.