public class ServerRpcQueue extends Object
| Constructor and Description |
|---|
ServerRpcQueue(Registry registry)
Creates a new instance connected to the given registry.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(elemental.json.JsonValue invocation)
Adds an explicit RPC method invocation to the send queue.
|
void |
clear()
Clears the queue.
|
void |
flush()
Triggers a send of server RPC and legacy variable changes to the server.
|
boolean |
isEmpty()
Checks if the queue is empty.
|
boolean |
isFlushPending()
Checks if a flush operation is pending.
|
boolean |
showLoadingIndicator()
Checks if a loading indicator should be shown when the RPCs have been
sent to the server and we are waiting for a response.
|
int |
size()
Returns the current size of the queue.
|
elemental.json.JsonArray |
toJson()
Returns the current invocations as JSON.
|
public ServerRpcQueue(Registry registry)
registry - the global registrypublic void add(elemental.json.JsonValue invocation)
invocation - RPC method invocationpublic void clear()
public int size()
public boolean isEmpty()
public void flush()
public boolean isFlushPending()
public boolean showLoadingIndicator()
public elemental.json.JsonArray toJson()
Copyright © 2000–2021 Vaadin Ltd. All rights reserved.