|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xmlrpc.client.XmlRpcClientWorker
public class XmlRpcClientWorker
Object, which performs a request on the clients behalf. The client maintains a pool of workers. The main purpose of the pool is limitation of the maximum number of concurrent requests.
Constructor Summary | |
---|---|
XmlRpcClientWorker(XmlRpcClientWorkerFactory pFactory)
Creates a new instance. |
Method Summary | |
---|---|
java.lang.Object |
execute(org.apache.xmlrpc.XmlRpcRequest pRequest)
Performs a synchronous request. |
void |
execute(org.apache.xmlrpc.XmlRpcRequest pRequest,
AsyncCallback pCallback)
Performs an synchronous request. |
org.apache.xmlrpc.common.XmlRpcController |
getController()
|
protected java.lang.Thread |
newThread(java.lang.Runnable pRunnable)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlRpcClientWorker(XmlRpcClientWorkerFactory pFactory)
pFactory
- The factory, which is being notified, if
the worker's ready.Method Detail |
---|
public org.apache.xmlrpc.common.XmlRpcController getController()
getController
in interface org.apache.xmlrpc.common.XmlRpcWorker
public java.lang.Object execute(org.apache.xmlrpc.XmlRpcRequest pRequest) throws org.apache.xmlrpc.XmlRpcException
execute
in interface org.apache.xmlrpc.common.XmlRpcWorker
pRequest
- The request being performed.
org.apache.xmlrpc.XmlRpcException
- Performing the request failed.protected java.lang.Thread newThread(java.lang.Runnable pRunnable)
public void execute(org.apache.xmlrpc.XmlRpcRequest pRequest, AsyncCallback pCallback)
pRequest
- The request being performed.pCallback
- The callback being invoked, when the request is finished.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |