Example usage for io.netty.handler.codec ByteToMessageDecoder subclass-usage

List of usage examples for io.netty.handler.codec ByteToMessageDecoder subclass-usage

Introduction

In this page you can find the example usage for io.netty.handler.codec ByteToMessageDecoder subclass-usage.

Usage

From source file com.splicemachine.stream.KryoDecoder.java

public class KryoDecoder extends ByteToMessageDecoder {
    private static final Logger LOG = Logger.getLogger(KryoDecoder.class);
    static private KryoPool kp = SpliceSparkKryoRegistrator.getInstance();

    @Override
    protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception {

From source file com.spotify.ffwd.riemann.RiemannFrameDecoder.java

/**
 * Parses and unpacks length-prefixed streams of Proto.Msg messages.
 */
public class RiemannFrameDecoder extends ByteToMessageDecoder {
    private static final int MAX_SIZE = 0xffffff;

From source file com.spotify.folsom.client.ascii.AsciiMemcacheDecoder.java

public class AsciiMemcacheDecoder extends ByteToMessageDecoder {

    private final StringBuilder line = new StringBuilder();
    private boolean consumed = false;
    private boolean valueMode = false;

From source file com.spotify.folsom.client.binary.BinaryMemcacheDecoder.java

public class BinaryMemcacheDecoder extends ByteToMessageDecoder {

    private static final byte[] NO_BYTES = new byte[0];
    private static final int BATCH_SIZE = 16;

    private BinaryResponse replies = new BinaryResponse();

From source file com.spotify.heroic.rpc.nativerpc.NativeRpcDecoder.java

public class NativeRpcDecoder extends ByteToMessageDecoder {
    private final MessagePack messagePack = new MessagePack();

    @Override
    protected void decode(final ChannelHandlerContext ctx, final ByteBuf in, final List<Object> out)
            throws Exception {

From source file com.spotify.netty.handler.codec.zmtp.ZMTPFramingDecoder.java

/**
 * Netty FrameDecoder for zmtp protocol
 * <p/>
 * Decodes ZMTP frames into a ZMTPMessage - will return a ZMTPMessage as a message event
 */
class ZMTPFramingDecoder extends ByteToMessageDecoder {

From source file com.spotify.netty4.handler.codec.zmtp.ZMTPFramingDecoder.java

/**
 * Netty ZMTP decoder.
 */
class ZMTPFramingDecoder extends ByteToMessageDecoder {

    private final ZMTPDecoder decoder;

From source file com.springapp.mvc.netty.example.factorial.BigIntegerDecoder.java

/**
 * Decodes the binary representation of a {@link java.math.BigInteger} prepended
 * with a magic number ('F' or 0x46) and a 32-bit integer length prefix into a
 * {@link java.math.BigInteger} instance.  For example, { 'F', 0, 0, 0, 1, 42 } will be
 * decoded into new BigInteger("42").
 */

From source file com.springapp.mvc.netty.example.portunification.PortUnificationServerHandler.java

/**
 * Manipulates the current pipeline dynamically to switch protocols or enable
 * SSL or GZIP.
 */
public class PortUnificationServerHandler extends ByteToMessageDecoder {

From source file com.stratio.deep.commons.extractor.client.codecs.ActionDecoder.java

public class ActionDecoder extends ByteToMessageDecoder {

    private static final Logger LOG = LoggerFactory.getLogger(ActionDecoder.class);

    protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) {