Package org.menacheri.jetserver.concurrent

Examples of org.menacheri.jetserver.concurrent.NamedThreadFactory


  public Bootstrap createServerBootstrap()
  {
    // TODO The thread pools should be injected from spring.
    serverBootstrap = new ServerBootstrap(
        new NioServerSocketChannelFactory(Executors
            .newCachedThreadPool(new NamedThreadFactory(
                "TCP-Server-Boss")), Executors
            .newCachedThreadPool(new NamedThreadFactory(
                "TCP-Server-Worker"))));

    return serverBootstrap;
  }
View Full Code Here


  @Override
  public Bootstrap createServerBootstrap()
  {
    serverBootstrap = new ConnectionlessBootstrap(
        new NioDatagramChannelFactory(Executors
            .newCachedThreadPool(new NamedThreadFactory(
                "UDP-Server-Worker"))));
    return serverBootstrap;
  }
View Full Code Here

  {
    // TODO The thread pools should be injected from spring.
    serverBootstrap = new ServerBootstrap(
       
        new NioServerSocketChannelFactory(Executors
            .newFixedThreadPool(1,new NamedThreadFactory(
                "Flash-Server-Boss")), Executors
            .newFixedThreadPool(1,new NamedThreadFactory(
                "Flash-Server-Worker"))));

    return serverBootstrap;
  }
View Full Code Here

TOP

Related Classes of org.menacheri.jetserver.concurrent.NamedThreadFactory

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.