org.apache.xmlrpc.common
public abstract class XmlRpcWorkerFactory extends Object
| Constructor Summary | |
|---|---|
| XmlRpcWorkerFactory(XmlRpcController pController) Creates a new instance. | |
| Method Summary | |
|---|---|
| XmlRpcController | getController() Returns the factory controller. |
| int | getCurrentRequests() Returns the number of currently running requests. |
| XmlRpcWorker | getWorker() Returns a worker for synchronous processing. |
| protected abstract XmlRpcWorker | newWorker() Creates a new worker instance. |
| void | releaseWorker(XmlRpcWorker pWorker) Called, when the worker did its job. |
Parameters: pController The client controlling the factory.
Returns: The controller, an instance of XmlRpcClient, or XmlRpcServer.
Returns: Current number of concurrent requests.
Returns: An instance of XmlRpcWorker, which is ready for use.
Throws: XmlRpcLoadException The clients maximum number of concurrent threads is exceeded.
Returns: New instance of XmlRpcWorker.
Parameters: pWorker The worker being released.