Examples of NioWorkerPool


Examples of com.facebook.presto.jdbc.internal.netty.channel.socket.nio.NioWorkerPool

        // Netty will name the threads and will size the pool appropriately
        this.bossExecutor = newCachedThreadPool(daemonThreadsNamed(prefix + "boss-%s"));
        this.workerExecutor = newCachedThreadPool(daemonThreadsNamed(prefix + "worker-%s"));

        this.bossPool = new NioClientBossPool(bossExecutor, config.getIoBossThreads(), hashedWheelTimer, ThreadNameDeterminer.CURRENT);
        this.workerPool = new NioWorkerPool(workerExecutor, config.getIoWorkerThreads(), ThreadNameDeterminer.CURRENT);
    }
View Full Code Here

Examples of org.jboss.netty.channel.socket.nio.NioWorkerPool

    /**
     * Creates a new worker pool.
     */
    WorkerPool build() {
        int count = workerCount > 0 ? workerCount : NettyHelper.DEFAULT_IO_THREADS;
        workerPool = new NioWorkerPool(Executors.newCachedThreadPool(), count, new CamelNettyThreadNameDeterminer(pattern, name));
        return workerPool;
    }
View Full Code Here

Examples of org.jboss.netty.channel.socket.nio.NioWorkerPool

         {
            synchronized (nioWorkerPoolGuard)
            {
               if (nioWorkerPool == null)
               {
                  nioWorkerPool = new NioWorkerPool(threadPool, threadsToUse, null);
               }
               if(nioBossPool == null)
               {
                  //only used for connect so 1 will do
                  nioBossPool = new NioClientBossPool(virtualExecutor, 1);
View Full Code Here

Examples of org.jboss.netty.channel.socket.nio.NioWorkerPool

         {
            synchronized (nioWorkerPoolGuard)
            {
               if (nioWorkerPool == null)
               {
                  nioWorkerPool = new NioWorkerPool(threadPool, threadsToUse, null);
               }
               if(nioBossPool == null)
               {
                  //only used for connect so 1 will do
                  nioBossPool = new NioClientBossPool(virtualExecutor, 1);
View Full Code Here

Examples of org.jboss.netty.channel.socket.nio.NioWorkerPool

    this.proxySettings = proxy;

    timer = new HashedWheelTimer();
   
    channelFactory = new NioClientSocketChannelFactory(
        executor, 1, new NioWorkerPool(executor, DEFAULT_IO_THREADS), timer);

    boot = new ClientBootstrap(channelFactory);

    if (proxySettings == null) {
View Full Code Here

Examples of org.jboss.netty.channel.socket.nio.NioWorkerPool

        acceptorThreads = config.getAcceptorThreadCount();
        ioExecutor = newCachedThreadPool(new ThreadFactoryBuilder().setNameFormat("thrift-io-%s").build());
        ioThreads = config.getIoThreadCount();

        serverChannelFactory = new NioServerSocketChannelFactory(new NioServerBossPool(acceptorExecutor, acceptorThreads, ThreadNameDeterminer.CURRENT),
                                                                 new NioWorkerPool(ioExecutor, ioThreads, ThreadNameDeterminer.CURRENT));

        ThriftServerDef thriftServerDef = ThriftServerDef.newBuilder()
                                                         .name("thrift")
                                                         .listen(configuredPort)
                                                         .limitFrameSizeTo((int) config.getMaxFrameSize().toBytes())
View Full Code Here

Examples of org.jboss.netty.channel.socket.nio.NioWorkerPool

        acceptorExecutor = nettyServerConfig.getBossExecutor();
        acceptorThreads = nettyServerConfig.getBossThreadCount();
        ioExecutor = nettyServerConfig.getWorkerExecutor();
        ioThreads = nettyServerConfig.getWorkerThreadCount();
        serverChannelFactory = new NioServerSocketChannelFactory(new NioServerBossPool(acceptorExecutor, acceptorThreads, ThreadNameDeterminer.CURRENT),
                                                                 new NioWorkerPool(ioExecutor, ioThreads, ThreadNameDeterminer.CURRENT));
        transport = new NettyServerTransport(thriftServerDef, nettyServerConfig, allChannels);
    }
View Full Code Here

Examples of org.jboss.netty.channel.socket.nio.NioWorkerPool

    this.proxySettings = proxy;

    timer = new HashedWheelTimer();
   
    channelFactory = new NioClientSocketChannelFactory(
        executor, 1, new NioWorkerPool(executor, DEFAULT_IO_THREADS), timer);

    boot = new ClientBootstrap(channelFactory);

    if (proxySettings == null) {
View Full Code Here

Examples of org.jboss.netty.channel.socket.nio.NioWorkerPool

    this.proxySettings = proxy;

    timer = new HashedWheelTimer();
   
    channelFactory = new NioClientSocketChannelFactory(
        executor, 1, new NioWorkerPool(executor, DEFAULT_IO_THREADS), timer);

    boot = new ClientBootstrap(channelFactory);

    if (proxySettings == null) {
View Full Code Here

Examples of org.jboss.netty.channel.socket.nio.NioWorkerPool

         {
            synchronized (nioWorkerPoolGuard)
            {
               if (nioWorkerPool == null)
               {
                  nioWorkerPool = new NioWorkerPool(threadPool, threadsToUse, null);
               }
               if(nioBossPool == null)
               {
                  //only used for connect so 1 will do
                  nioBossPool = new NioClientBossPool(virtualExecutor, 1);
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.