Package org.eclipse.ecf.remoteservice
Interface IRemoteCall
-
- All Known Subinterfaces:
IRestCall
- All Known Implementing Classes:
AbstractRSAClientService.RSARemoteCall,RemoteCall,RemoteCallImpl,RemoteCallMethod,RestCall
public interface IRemoteCallInstances of this interface are used to invoke a method call on a remote service- See Also:
IRemoteService
-
-
Field Summary
Fields Modifier and Type Field Description static longDEFAULT_TIMEOUTDefault remote call timeout is set to the value of system property 'ecf.remotecall.timeout'.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetMethod()Get the method name to call on the remote.Object[]getParameters()Get the method parameters of the method to call on the remote.longgetTimeout()Get timeout (in ms) for the remote call.
-
-
-
Method Detail
-
getMethod
String getMethod()
Get the method name to call on the remote. Must return a non-null and non-empty string- Returns:
- String name of method to call on the remote
-
getParameters
Object[] getParameters()
Get the method parameters of the method to call on the remote. Will return a non-nullarray of Object parameters. The given Objects in the array must be be Serializable so that they may be serialized to deliver to remote.- Returns:
- Object [] the parameters to be provided for this call. Will not
be
null, but may be empty array.
-
getTimeout
long getTimeout()
Get timeout (in ms) for the remote call.- Returns:
- long timeout in ms
-
-