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 {@link org.apache.xmlrpc.client.XmlRpcClient}, or {@link org.apache.xmlrpc.server.XmlRpcServer}.
Returns: Current number of concurrent requests.
Returns: An instance of {@link XmlRpcWorker}, which is ready for use.
Throws: XmlRpcLoadException The clients maximum number of concurrent threads is exceeded.
Returns: New instance of {@link XmlRpcWorker}.
Parameters: pWorker The worker being released.