com.vaadin.shared.communication.
Class MethodInvocation
- java.lang.Object
-
- com.vaadin.shared.communication.MethodInvocation
-
All Implemented Interfaces:
Direct Known Subclasses:
JavaScriptMethodInvocation, LegacyChangeVariablesInvocation, ServerRpcMethodInvocation
public class MethodInvocation extends Object implements Serializable
Information needed by the framework to send an RPC method invocation from the client to the server or vice versa.
Since:
7.0
See Also:
-
-
Constructor Summary
Constructors Constructor and Description MethodInvocation(String connectorId, String interfaceName, String methodName)
MethodInvocation(String connectorId, String interfaceName, String methodName, Object[] parameters)
-
Method Summary
All Methods Modifier and Type Method and Description boolean
equals(Object obj)
String
getConnectorId()
String
getInterfaceName()
String
getLastOnlyTag()
Gets a String tag that is used to uniquely identify previous method invocations that should be purged from the queue if
@Delay(lastOnly = true)
is used.String
getMethodName()
Object[]
getParameters()
void
setParameters(Object[] parameters)
String
toString()
-
-
-
Constructor Detail
-
MethodInvocation
public MethodInvocation(String connectorId, String interfaceName, String methodName)
-
-
Method Detail
-
getConnectorId
public String getConnectorId()
-
getInterfaceName
public String getInterfaceName()
-
getMethodName
public String getMethodName()
-
getParameters
public Object[] getParameters()
-
setParameters
public void setParameters(Object[] parameters)
-
getLastOnlyTag
public String getLastOnlyTag()
Gets a String tag that is used to uniquely identify previous method invocations that should be purged from the queue if
@Delay(lastOnly = true)
is used.The returned string should contain at least one non-number char to ensure it doesn't collide with the keys used for invocations without lastOnly.
Returns:
a string identifying this method invocation
-
-