public class RemoteCall extends AbstractAsyncProxyRemoteCall implements IRemoteCall
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
method |
protected java.lang.Object[] |
parameters |
protected long |
timeout |
DEFAULT_TIMEOUT
Constructor and Description |
---|
RemoteCall(java.lang.String method) |
RemoteCall(java.lang.String method,
java.lang.Object[] parameters) |
RemoteCall(java.lang.String method,
java.lang.Object[] parameters,
long timeout) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMethod()
Get the method name to call on the remote.
|
java.lang.Object[] |
getParameters()
Get the method parameters of the method to call on the remote.
|
long |
getTimeout()
Get timeout (in ms) for the remote call.
|
java.lang.String |
toString() |
protected java.lang.String method
protected java.lang.Object[] parameters
protected long timeout
public RemoteCall(java.lang.String method, java.lang.Object[] parameters, long timeout)
public RemoteCall(java.lang.String method, java.lang.Object[] parameters)
public RemoteCall(java.lang.String method)
public java.lang.String getMethod()
IRemoteCall
getMethod
in interface IRemoteCall
public java.lang.Object[] getParameters()
IRemoteCall
null
array of Object parameters. The given
Objects in the array must be be Serializable so that they may be
serialized to deliver to remote.getParameters
in interface IRemoteCall
null
, but may be empty array.public long getTimeout()
IRemoteCall
getTimeout
in interface IRemoteCall
public java.lang.String toString()
toString
in class java.lang.Object