org.apache.xmlrpc.common
Class XmlRpcWorkerFactory
java.lang.Object
org.apache.xmlrpc.common.XmlRpcWorkerFactory
public abstract class XmlRpcWorkerFactory
extends java.lang.Object
XmlRpcWorkerFactory
public XmlRpcWorkerFactory(XmlRpcController pController)
Creates a new instance.
pController
- The client controlling the factory.
getController
public XmlRpcController getController()
Returns the factory controller.
getCurrentRequests
public int getCurrentRequests()
Returns the number of currently running requests.
- Current number of concurrent requests.
newWorker
protected abstract XmlRpcWorker newWorker()
Creates a new worker instance.
releaseWorker
public void releaseWorker(XmlRpcWorker pWorker)
Called, when the worker did its job. Frees resources and
decrements the number of concurrent requests.
pWorker
- The worker being released.
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.