org.smallmind.plumber.nio
Class ServerSocketChannelHerald
java.lang.Object
org.smallmind.plumber.nio.ServerSocketChannelHerald
- All Implemented Interfaces:
- Runnable, ComponentFactory<SocketChannelWorker>
public class ServerSocketChannelHerald
- extends Object
- implements ComponentFactory<SocketChannelWorker>, Runnable
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NO_THROTTLE
public static final int NO_THROTTLE
- See Also:
- Constant Field Values
ServerSocketChannelHerald
public ServerSocketChannelHerald(Logger logger,
SocketChannelWorkerFactory workerFactory,
ServerSocketChannel serverSocketChannel,
int maxAccepted,
int poolSize)
throws IOException
- Throws:
IOException
createComponent
public SocketChannelWorker createComponent()
throws Exception
- Specified by:
createComponent in interface ComponentFactory<SocketChannelWorker>
- Throws:
Exception
finish
public void finish()
throws InterruptedException
- Throws:
InterruptedException
run
public void run()
- Specified by:
run in interface Runnable
returnConnection
public void returnConnection(SocketChannelWorker worker)
Copyright © 2012. All Rights Reserved.