public abstract class AbstractRpcInvocationHandler extends Object implements RpcInvocationHandler
Constructor and Description |
---|
AbstractRpcInvocationHandler() |
Modifier and Type | Method and Description |
---|---|
Optional<Runnable> |
handle(UI ui,
elemental.json.JsonObject invocationJson)
Handles RPC data
invocationJson using ui as a context. |
protected abstract Optional<Runnable> |
handleNode(StateNode node,
elemental.json.JsonObject invocationJson)
Handle the RPC data
invocationJson using target node as a
context. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRpcType
public Optional<Runnable> handle(UI ui, elemental.json.JsonObject invocationJson)
RpcInvocationHandler
invocationJson
using ui
as a context.handle
in interface RpcInvocationHandler
ui
- the UI to handle against, not null
invocationJson
- the RPC data to handle, not null
protected abstract Optional<Runnable> handleNode(StateNode node, elemental.json.JsonObject invocationJson)
invocationJson
using target node
as a
context.node
- node to handle invocation with, not null
invocationJson
- the RPC data to handle, not null
Copyright © 2020. All rights reserved.