ContinuousQueryManager function.public interface ClientReplicableMap
If the client is a continuous replica of the server map, the data in the server will be replicated to the client continuously in an asynchronous manner.
If the client is a snapshot replica of the server map, a snapshot on the data in the server will be taken and the snapshot will be replicated to the client in an asynchronous manner. A snapshot replication is a one-time replication.
A ReplicationMapListener can be used to listen for the data changes as well as the replication lifecycle events.
ReplicationMapListener| Modifier and Type | Interface and Description |
|---|---|
static class |
ClientReplicableMap.Mode
Deprecated.
Client Replication mode
|
| Modifier and Type | Field and Description |
|---|---|
static ClientReplicableMap.Mode |
CONTINUOUS_REPLICATION
Deprecated.
Full replication mode.
|
static ClientReplicableMap.Mode |
NONE
Deprecated.
No replication mode, aka normal mode.
|
static ClientReplicableMap.Mode |
SNAPSHOT_REPLICATION
Deprecated.
Snapshot replication mode.
|
| Modifier and Type | Method and Description |
|---|---|
void |
disableClientReplication()
Deprecated.
Disables the replication for this client.
|
void |
enableClientReplication(ClientReplicableMap.Mode mode,
int[] partitions,
ReplicationMapListener listener)
Deprecated.
Make the client map a replica of the server side map.
|
ClientReplicableMap.Mode |
getReplicationMode()
Deprecated.
Returns the current replication mode
|
static final ClientReplicableMap.Mode NONE
static final ClientReplicableMap.Mode CONTINUOUS_REPLICATION
static final ClientReplicableMap.Mode SNAPSHOT_REPLICATION
void enableClientReplication(ClientReplicableMap.Mode mode, int[] partitions, ReplicationMapListener listener) throws ObjectGridException
When security is enabled, this method requires a ServerMapPermission
with action "replicate". Refer to ServerMapPermission for more
permission details.
Required Client Permission: ServerMapPermission.REPLICATE
mode - The replication mode.partitions - The array of partition IDs represent which partitions the data should be replicated
from. If the value is null or an empty array, it indicates the data should be
replicated from all partitions.listener - a listener to receive client replication eventsIllegalArgumentException - if mode is not CONTINUOUS_REPLICATION or SNAPSHOT_REPLICATION or
the map isn't currently in the mode specified or is not in NONE modeIllegalStateException - if this method is invoked on a map other than a client mapObjectGridException - if an error occurs during processing this requestReplicationMapListener,
CONTINUOUS_REPLICATION,
SNAPSHOT_REPLICATION,
getReplicationMode(),
BackingMap.CLIENTClientReplicableMap.Mode getReplicationMode()
NONE,
CONTINUOUS_REPLICATION,
SNAPSHOT_REPLICATIONvoid disableClientReplication()
throws ObjectGridException
When security is enabled, this method requires a ServerMapPermission
with action "replicate". Refer to ServerMapPermission for more
permission details.
IllegalStateException - if this method is invoked on a map other than a client mapObjectGridException - if an error occurs during processing this requestBackingMap.CLIENT