Examples of MinecraftPipelineFactory


Examples of net.lightstone.net.MinecraftPipelineFactory

  private void init() {
    /* initialize channel and pipeline factories */
    ChannelFactory factory = new NioServerSocketChannelFactory(executor, executor);
    bootstrap.setFactory(factory);

    ChannelPipelineFactory pipelineFactory = new MinecraftPipelineFactory(this);
    bootstrap.setPipelineFactory(pipelineFactory);

    /* add shutdown hook */
    Runtime.getRuntime().addShutdownHook(new Thread(new ServerShutdownHandler()));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.