public interface ReplicationConfig extends Config
Sessions and topics can be replicated across a cluster. The configuration here covers what is replicated and what is used to replicate the data. Replication of data between servers is provided by third party applications and must be configured in an implementation specific way.
Modifier and Type | Method and Description |
---|---|
String |
getProvider()
Get the provider for replication.
|
ServerConfig |
getServer()
Deprecated.
since 5.6. It is expected that you will already have a reference to
ServerConfig . This
method will be removed in a future version of Diffusion. |
SessionReplicationConfig |
getSessionReplication()
Get the configuration for the session replication.
|
TopicReplicationConfig |
getTopicReplication()
Get the configuration for the topic replication.
|
boolean |
isEnabled()
Is replication enabled.
|
void |
setEnabled(boolean enabled)
Set replication enabled.
|
void |
setProvider(String provider)
Set the provider for replication.
|
boolean isEnabled()
Controls whether any replication services will be started. Overrides service specific settings.
void setEnabled(boolean enabled)
enabled
- is replication enabledString getProvider()
void setProvider(String provider)
This represents the replication back-end. Currently only HAZELCAST is supported.
provider
- The provider for replication.SessionReplicationConfig getSessionReplication()
TopicReplicationConfig getTopicReplication()
@Deprecated ServerConfig getServer()
ServerConfig
. This
method will be removed in a future version of Diffusion.Copyright © 2016 Push Technology Ltd. All Rights Reserved.