Package org.apache.thrift.server.TThreadedSelectorServer

Examples of org.apache.thrift.server.TThreadedSelectorServer.Args.executorService()


    log.debug("Thrift server started in {}", addr);

    // TODO default selectorThreads is 2. Test if this is enough under load,
    // or we would need more selector threads.
    Args args = new Args(transport);
    args.executorService(executorService.getExecutor())
        .processor(processor);

    server = new NonBlockingTThreadedSelectorServer(args);
    server.serve();
  }
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.