public class JettyHttpThreadPool extends Object implements com.cisco.oss.foundation.http.server.HttpThreadPool
| Constructor and Description |
|---|
JettyHttpThreadPool(String serviceName) |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxThreads()
get the max number of threads on the pool
|
int |
getMinThreads()
get the min number of threads on the pool
|
int |
getThreads() |
boolean |
isLowOnThreads()
return true if the server doesn't have enough threads to process a request
|
void |
setMaxThreads(int maxThreads)
set the max number of threads on the pool
|
void |
setMinThreads(int minThreads)
set the min number of threads on the pool
|
public JettyHttpThreadPool(String serviceName)
public void setMaxThreads(int maxThreads)
setMaxThreads in interface com.cisco.oss.foundation.http.server.HttpThreadPoolmaxThreads - public int getMaxThreads()
getMaxThreads in interface com.cisco.oss.foundation.http.server.HttpThreadPoolpublic void setMinThreads(int minThreads)
setMinThreads in interface com.cisco.oss.foundation.http.server.HttpThreadPoolminThreads - public int getMinThreads()
getMinThreads in interface com.cisco.oss.foundation.http.server.HttpThreadPoolpublic boolean isLowOnThreads()
isLowOnThreads in interface com.cisco.oss.foundation.http.server.HttpThreadPoolpublic int getThreads()
getThreads in interface com.cisco.oss.foundation.http.server.HttpThreadPoolCopyright © 2014 Cisco. All Rights Reserved.