Package org.apache.xmlrpc.common
Interface XmlRpcWorker
- All Known Implementing Classes:
XmlRpcClientWorker
,XmlRpcServerWorker
public interface XmlRpcWorker
An object, which executes requests on the controllers
behalf. These objects are mainly used for controlling the
clients or servers load, which is defined in terms of the
number of currently active workers.
-
Method Summary
Modifier and TypeMethodDescriptionexecute
(XmlRpcRequest pRequest) Performs a synchronous request.Returns the workers controller.
-
Method Details
-
getController
XmlRpcController getController()Returns the workers controller.- Returns:
- The controller, an instance of
XmlRpcClient
, orXmlRpcServer
.
-
execute
Performs a synchronous request. The client worker extends this interface with the ability to perform asynchronous requests.- Parameters:
pRequest
- The request being performed.- Returns:
- The requests result.
- Throws:
XmlRpcException
- Performing the request failed.
-