Created
July 9, 2012 10:07
-
-
Save nicokruger/3075537 to your computer and use it in GitHub Desktop.
tthreadpoolserver max threads
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TServerTransport serverTransport = new TServerSocket(port); | |
TThreadPoolServer.Args a = new TThreadPoolServer.Args(serverTransport).processor(processor); | |
a.maxWorkerThreads(5); | |
TThreadPoolServer server = new TThreadPoolServer(a); | |
return server; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment