public abstract class XmlRpcWorkerFactory extends Object
XmlRpcWorker instances.| Constructor and Description |
|---|
XmlRpcWorkerFactory(XmlRpcController pController)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public XmlRpcWorkerFactory(XmlRpcController pController)
pController - The client controlling the factory.protected abstract XmlRpcWorker newWorker()
XmlRpcWorker.public XmlRpcController getController()
XmlRpcClient, or
XmlRpcServer.public XmlRpcWorker getWorker() throws XmlRpcLoadException
XmlRpcWorker, which is ready
for use.XmlRpcLoadException - The clients maximum number of concurrent
threads is exceeded.public void releaseWorker(XmlRpcWorker pWorker)
pWorker - The worker being released.public int getCurrentRequests()
Copyright © 2001-2015 The Apache Software Foundation. All Rights Reserved.