All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.elasticsearch.common.netty.KeepFrameDecoder Maven / Gradle / Ivy

There is a newer version: 8.14.1
Show newest version
package org.elasticsearch.common.netty;

import org.jboss.netty.buffer.ChannelBuffer;
import org.jboss.netty.channel.Channel;
import org.jboss.netty.channel.ChannelHandlerContext;
import org.jboss.netty.handler.codec.frame.FrameDecoder;

/**
 * A marker to not remove frame decoder from the resulting jar so plugins can use it.
 */
public class KeepFrameDecoder extends FrameDecoder {

    public static final KeepFrameDecoder decoder = new KeepFrameDecoder();

    @Override
    protected Object decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) throws Exception {
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy