public class ServicePool extends ServerServiceFilter
| Modifier and Type | Class and Description |
|---|---|
class |
ServicePool.Pool |
static class |
ServicePool.Registry |
| Constructor and Description |
|---|
ServicePool(ServerService next,
int threads) |
ServicePool(ServerService next,
int threads,
int queue,
boolean block) |
ServicePool(ServerService next,
int threadCore,
int threads,
int queue,
boolean block,
long keepAliveTime,
boolean forceClose) |
ServicePool(ServerService next,
Options properties) |
ServicePool(ServerService next,
java.util.Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.ThreadPoolExecutor |
getThreadPool() |
void |
service(java.io.InputStream in,
java.io.OutputStream out) |
void |
service(java.net.Socket socket) |
void |
start() |
void |
stop() |
getDelegate, getIP, getName, getPort, initunwrappublic ServicePool(ServerService next, java.util.Properties properties)
public ServicePool(ServerService next, Options properties)
public ServicePool(ServerService next, int threads)
public ServicePool(ServerService next, int threads, int queue, boolean block)
public ServicePool(ServerService next, int threadCore, int threads, int queue, boolean block, long keepAliveTime, boolean forceClose)
public java.util.concurrent.ThreadPoolExecutor getThreadPool()
public void start()
throws ServiceException
start in interface ServerServicestart in class ServerServiceFilterServiceExceptionpublic void stop()
throws ServiceException
stop in interface ServerServicestop in class ServerServiceFilterServiceExceptionpublic void service(java.io.InputStream in,
java.io.OutputStream out)
throws ServiceException,
java.io.IOException
service in interface ServerServiceservice in class ServerServiceFilterServiceExceptionjava.io.IOExceptionpublic void service(java.net.Socket socket)
throws ServiceException,
java.io.IOException
service in interface ServerServiceservice in class ServerServiceFilterServiceExceptionjava.io.IOException