Package org.apache.xmlrpc.client
Class XmlRpcClientWorker
java.lang.Object
org.apache.xmlrpc.client.XmlRpcClientWorker
- All Implemented Interfaces:
XmlRpcWorker
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.
- Since:
- 3.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionXmlRpcClientWorker(XmlRpcClientWorkerFactory pFactory) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionexecute(XmlRpcRequest pRequest) Performs a synchronous request.voidexecute(XmlRpcRequest pRequest, AsyncCallback pCallback) Performs an synchronous request.Returns the workers controller.protected Thread
-
Field Details
-
factory
-
-
Constructor Details
-
XmlRpcClientWorker
Creates a new instance.- Parameters:
pFactory- The factory, which is being notified, if the worker's ready.
-
-
Method Details
-
getController
Description copied from interface:XmlRpcWorkerReturns the workers controller.- Specified by:
getControllerin interfaceXmlRpcWorker- Returns:
- The controller, an instance of
XmlRpcClient, orXmlRpcServer.
-
execute
Performs a synchronous request.- Specified by:
executein interfaceXmlRpcWorker- Parameters:
pRequest- The request being performed.- Returns:
- The requests result.
- Throws:
XmlRpcException- Performing the request failed.
-
newThread
-
execute
Performs an synchronous request.- Parameters:
pRequest- The request being performed.pCallback- The callback being invoked, when the request is finished.
-