Class ReturnChannelHandler
java.lang.Object
com.vaadin.flow.server.communication.rpc.AbstractRpcInvocationHandler
com.vaadin.flow.server.communication.ReturnChannelHandler
- All Implemented Interfaces:
RpcInvocationHandler,Serializable
RPC handler for return channel messages.
For internal use only. May be renamed or removed in a future release.
- Since:
- 2.0
- Author:
- Vaadin Ltd
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanallowInert(UI ui, tools.jackson.databind.JsonNode invocationJson) Specifies whether inert status should be ignored for an RPC invocation or not.Gets unique RPC type which this handler is applicable for.handleNode(StateNode node, tools.jackson.databind.JsonNode invocationJson) Handle the RPC datainvocationJsonusing targetnodeas a context.Methods inherited from class com.vaadin.flow.server.communication.rpc.AbstractRpcInvocationHandler
getNodeId, handle
-
Constructor Details
-
ReturnChannelHandler
public ReturnChannelHandler()
-
-
Method Details
-
getRpcType
Description copied from interface:RpcInvocationHandlerGets unique RPC type which this handler is applicable for.- Returns:
- the unique rpc type
-
handleNode
protected Optional<Runnable> handleNode(StateNode node, tools.jackson.databind.JsonNode invocationJson) Description copied from class:AbstractRpcInvocationHandlerHandle the RPC datainvocationJsonusing targetnodeas a context.- Specified by:
handleNodein classAbstractRpcInvocationHandler- Parameters:
node- node to handle invocation with, notnullinvocationJson- the RPC data to handle, notnull- Returns:
- an optional runnable
-
allowInert
Description copied from class:AbstractRpcInvocationHandlerSpecifies whether inert status should be ignored for an RPC invocation or not. The default behaviour is to let the polling events be handled, while ignoring other requests.- Overrides:
allowInertin classAbstractRpcInvocationHandler- Parameters:
ui- the UI instance that RPC invocation originated from.invocationJson- the JsonObject containing invocation properties.- Returns:
- a boolean indicating that the inert status should be ignored for the current invocation or not.
-