Package net.minecraft.util.io.netty.channel

Examples of net.minecraft.util.io.netty.channel.ChannelPipeline


  private void unregisterChannelHandler() {
    if (serverChannelHandler == null)
      return;
   
    for (Channel serverChannel : serverChannels) {
      final ChannelPipeline pipeline = serverChannel.pipeline();
     
      // Remove channel handler
      serverChannel.eventLoop().execute(new Runnable() {
        public void run() {
          try {
            pipeline.remove(serverChannelHandler);
          } catch (NoSuchElementException e) {
            // That's fine
          }
        }
      });
View Full Code Here


        return channel.pipeline();
    }

    @Override
    protected void hookPlayer(Player player) {
        final ChannelPipeline pipeline = this.getPipeline(player);
        if (pipeline != null) {
            pipeline.addLast(new TagAPIChannelOutboundHandler(player));
        }
    }
View Full Code Here

        }
    }

    @Override
    protected void releasePlayer(Player player) {
        final ChannelPipeline pipeline = this.getPipeline(player);
        if ((pipeline != null) && (pipeline.get(TagAPIChannelOutboundHandler.class) != null)) {
            this.dispose(pipeline);
        }
    }
View Full Code Here

                clean();
            }
        }

        private void clean() {
            ChannelPipeline trash;
            while ((trash = this.junkHeap.poll()) != null) {
                trash.remove(TagAPIChannelOutboundHandler.class);
            }
        }
View Full Code Here

TOP

Related Classes of net.minecraft.util.io.netty.channel.ChannelPipeline

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.