org.smallmind.plumber.io
Class ServerSocketHerald
java.lang.Object
org.smallmind.plumber.io.ServerSocketHerald
- All Implemented Interfaces:
- java.lang.Runnable, ComponentFactory<SocketWorker>
public class ServerSocketHerald
- extends java.lang.Object
- implements ComponentFactory<SocketWorker>, java.lang.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
ServerSocketHerald
public ServerSocketHerald(Logger logger,
SocketWorkerFactory workerFactory,
java.net.ServerSocket serverSocket,
int maxAccepted,
int poolSize)
throws java.io.IOException
- Throws:
java.io.IOException
createComponent
public SocketWorker createComponent()
throws java.lang.Exception
- Specified by:
createComponent in interface ComponentFactory<SocketWorker>
- Throws:
java.lang.Exception
finish
public void finish()
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
run
public void run()
- Specified by:
run in interface java.lang.Runnable
returnConnection
public void returnConnection(SocketWorker worker)
Copyright © 2012. All Rights Reserved.