Package io.netty.util.concurrent

Examples of io.netty.util.concurrent.DefaultThreadFactory


        LOGGER.info(environment.toString());
        LOGGER.debug(Diagnostics.collectAndFormat());

        this.environment = environment;
        configProvider = new DefaultConfigurationProvider(this, environment);
        disruptorExecutor = Executors.newFixedThreadPool(2, new DefaultThreadFactory("cb-core", true));

        responseDisruptor = new Disruptor<ResponseEvent>(
            new ResponseEventFactory(),
            environment.responseBufferSize(),
            disruptorExecutor
View Full Code Here


        queryServiceEndpoints = intPropertyOr("queryEndpoints", builder.queryEndpoints());
        packageNameAndVersion = stringPropertyOr("packageNameAndVersion", builder.packageNameAndVersion());
        userAgent = stringPropertyOr("userAgent", builder.userAgent());

        this.ioPool = builder.ioPool() == null
            ? new NioEventLoopGroup(ioPoolSize(), new DefaultThreadFactory("cb-io", true)) : builder.ioPool();
        this.coreScheduler = builder.scheduler() == null ? new CoreScheduler(computationPoolSize()) : builder.scheduler();
        this.shutdown = false;
    }
View Full Code Here

        super(nThreads == 0? DEFAULT_EVENT_LOOP_THREADS : nThreads, threadFactory, args);
    }

    @Override
    protected ThreadFactory newDefaultThreadFactory() {
        return new DefaultThreadFactory(getClass(), Thread.MAX_PRIORITY);
    }
View Full Code Here

    ChannelServerConfiguration c = new ChannelServerConfiguration();
    c.bindings(bindings);
    c.ports(new Ports(PORT, PORT));
    c.pipelineFilter(new MyPipeLine());
    final EventLoopGroup bossGroup = new NioEventLoopGroup(0,
              new DefaultThreadFactory(ConnectionBean.THREAD_NAME + "boss - "));
      workerGroup = new NioEventLoopGroup(0,
              new DefaultThreadFactory(ConnectionBean.THREAD_NAME + "worker-server - "));
    cs = new ChannelServer(bossGroup, workerGroup, c, null, null, null);
   
    cs.startupTCP(new InetSocketAddress("127.0.0.1", 7070), new ChannelServerConfiguration());
    cs.startupUDP(new InetSocketAddress("127.0.0.1", 7070), new ChannelServerConfiguration(), false);
   
View Full Code Here

    PeerAddress self = findPeerAddress(peerId, channelClientConfiguration, channelServerConfiguration);
    peerBean.serverPeerAddress(self);
    LOG.info("Visible address to other peers: {}", self);
   
    //start server
    workerGroup = new NioEventLoopGroup(0, new DefaultThreadFactory(ConnectionBean.THREAD_NAME
            + "worker-client/server - "));
    bossGroup = new NioEventLoopGroup(2, new DefaultThreadFactory(ConnectionBean.THREAD_NAME + "boss - "));
    Dispatcher dispatcher = new Dispatcher(p2pId, peerBean, channelServerConfiguration.heartBeatMillis());
    final ChannelServer channelServer = new ChannelServer(bossGroup, workerGroup, channelServerConfiguration,
            dispatcher, peerBean.peerStatusListeners(), timer);
   
    //connection bean
View Full Code Here

    protected static final int DEFAULT_FORKS = 2;

    public static final class HarnessExecutor extends ThreadPoolExecutor {
        public HarnessExecutor(int maxThreads, String prefix) {
            super(0, maxThreads, 1L, TimeUnit.DAYS, new SynchronousQueue<Runnable>(),
                  new DefaultThreadFactory(prefix));
            System.out.println("Using harness executor");
        }
View Full Code Here

TOP

Related Classes of io.netty.util.concurrent.DefaultThreadFactory

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.