Package org.elasticsearch.common.netty.channel

Examples of org.elasticsearch.common.netty.channel.ChannelStateEvent


        }
    };

    @Override public void handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) throws Exception {
        if (e instanceof ChannelStateEvent) {
            ChannelStateEvent evt = (ChannelStateEvent) e;
            if (evt.getState() == ChannelState.OPEN) {
                boolean added = openChannels.add(ctx.getChannel());
                if (added) {
                    openChannelsCount.incrementAndGet();
                    ctx.getChannel().getCloseFuture().addListener(remover);
                }
View Full Code Here

TOP

Related Classes of org.elasticsearch.common.netty.channel.ChannelStateEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.