public class ServerSocketChannelHerald extends Object implements ComponentFactory<SocketChannelWorker>, Runnable
| Modifier and Type | Field and Description |
|---|---|
static int |
NO_THROTTLE |
| Constructor and Description |
|---|
ServerSocketChannelHerald(Logger logger,
SocketChannelWorkerFactory workerFactory,
ServerSocketChannel serverSocketChannel,
int maxAccepted,
int poolSize) |
| Modifier and Type | Method and Description |
|---|---|
SocketChannelWorker |
createComponent() |
void |
finish() |
void |
returnConnection(SocketChannelWorker worker) |
void |
run() |
public static final int NO_THROTTLE
public ServerSocketChannelHerald(Logger logger, SocketChannelWorkerFactory workerFactory, ServerSocketChannel serverSocketChannel, int maxAccepted, int poolSize) throws IOException
IOExceptionpublic SocketChannelWorker createComponent() throws Exception
createComponent in interface ComponentFactory<SocketChannelWorker>Exceptionpublic void finish()
throws InterruptedException
InterruptedExceptionpublic void returnConnection(SocketChannelWorker worker)
Copyright © 2015. All Rights Reserved.