public class CustomTThreadPoolServer
extends org.apache.thrift.server.TServer
This allows passing an executor so you have more control over the actual behaviour of the tasks being run.
Newer version of Thrift should make this obsolete.Modifier and Type | Class and Description |
---|---|
static class |
CustomTThreadPoolServer.Factory |
Constructor and Description |
---|
CustomTThreadPoolServer(org.apache.thrift.server.TThreadPoolServer.Args args,
java.util.concurrent.ExecutorService executorService) |
Modifier and Type | Method and Description |
---|---|
void |
serve() |
void |
stop() |
Copyright © 2017 The Apache Software Foundation