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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
execute(XmlRpcRequest pRequest)
Performs a synchronous request.XmlRpcController
getController()
Returns the workers controller.
-
-
-
Method Detail
-
getController
XmlRpcController getController()
Returns the workers controller.- Returns:
- The controller, an instance of
XmlRpcClient
, orXmlRpcServer
.
-
execute
java.lang.Object execute(XmlRpcRequest pRequest) throws XmlRpcException
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.
-
-