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, init
unwrap
public 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 ServerService
start
in class ServerServiceFilter
ServiceException
public void stop() throws ServiceException
stop
in interface ServerService
stop
in class ServerServiceFilter
ServiceException
public void service(java.io.InputStream in, java.io.OutputStream out) throws ServiceException, java.io.IOException
service
in interface ServerService
service
in class ServerServiceFilter
ServiceException
java.io.IOException
public void service(java.net.Socket socket) throws ServiceException, java.io.IOException
service
in interface ServerService
service
in class ServerServiceFilter
ServiceException
java.io.IOException