|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.thrift.server.TServer
org.apache.cassandra.thrift.CustomTThreadPoolServer
public class CustomTThreadPoolServer
Slightly modified version of the Apache Thrift TThreadPoolServer.
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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.thrift.server.TServer |
---|
org.apache.thrift.server.TServer.AbstractServerArgs<T extends org.apache.thrift.server.TServer.AbstractServerArgs<T>>, org.apache.thrift.server.TServer.Args |
Field Summary |
---|
Fields inherited from class org.apache.thrift.server.TServer |
---|
inputProtocolFactory_, inputTransportFactory_, outputProtocolFactory_, outputTransportFactory_, processorFactory_, serverTransport_ |
Constructor Summary | |
---|---|
CustomTThreadPoolServer(org.apache.thrift.server.TThreadPoolServer.Args args,
java.util.concurrent.ExecutorService executorService)
|
Method Summary | |
---|---|
void |
serve()
|
void |
stop()
|
Methods inherited from class org.apache.thrift.server.TServer |
---|
isServing, setServing |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CustomTThreadPoolServer(org.apache.thrift.server.TThreadPoolServer.Args args, java.util.concurrent.ExecutorService executorService)
Method Detail |
---|
public void serve()
serve
in class org.apache.thrift.server.TServer
public void stop()
stop
in class org.apache.thrift.server.TServer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |