com.vaadin.flow.server.communication.rpc.
Class EventRpcHandler
- java.lang.Object
-
- com.vaadin.flow.server.communication.rpc.AbstractRpcInvocationHandler
-
- com.vaadin.flow.server.communication.rpc.EventRpcHandler
-
All Implemented Interfaces:
public class EventRpcHandler extends AbstractRpcInvocationHandler
RPC handler for events.
For internal use only. May be renamed or removed in a future release.
Since:
1.0
Author:
Vaadin Ltd
See Also:
-
-
Constructor Summary
Constructors Constructor Description EventRpcHandler()
-
Method Summary
All Methods Modifier and Type Method Description String
getRpcType()
Gets unique RPC type which this handler is applicable for.
Optional<Runnable>
handleNode(StateNode node, elemental.json.JsonObject invocationJson)
Handle the RPC data
invocationJson
using targetnode
as a context.-
Methods inherited from class com.vaadin.flow.server.communication.rpc.AbstractRpcInvocationHandler
allowInert, getNodeId, handle
-
-
-
-
Method Detail
-
getRpcType
public String getRpcType()
Description copied from interface:
RpcInvocationHandler
Gets unique RPC type which this handler is applicable for.
Returns:
the unique rpc type
-
handleNode
public Optional<Runnable> handleNode(StateNode node, elemental.json.JsonObject invocationJson)
Description copied from class:
AbstractRpcInvocationHandler
Handle the RPC data
invocationJson
using targetnode
as a context.Specified by:
handleNode
in classAbstractRpcInvocationHandler
Parameters:
node
- node to handle invocation with, notnull
invocationJson
- the RPC data to handle, notnull
Returns:
an optional runnable
-
-