|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(XmlRpcRequest pRequest)
Performs a synchronous request. |
void |
execute(XmlRpcRequest pRequest,
AsyncCallback pCallback)
Performs an synchronous request. |
XmlRpcController |
getController()
Returns the workers controller. |
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 XmlRpcController getController()
XmlRpcWorker
getController
in interface XmlRpcWorker
XmlRpcClient
, or
XmlRpcServer
.public java.lang.Object execute(XmlRpcRequest pRequest) throws XmlRpcException
execute
in interface XmlRpcWorker
pRequest
- The request being performed.
XmlRpcException
- Performing the request failed.protected java.lang.Thread newThread(java.lang.Runnable pRunnable)
public void execute(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 |