public interface WanReplicationConsumer
WanReplicationPublisher. The publisher will then publish events in a custom fashion
which the consumer expects and processes accordingly. This way, you can provide custom publication and consumption
mechanisms and protocols for WAN replication.
The default implementation of the WAN publisher ignores any configured custom consumers and the WAN events will be
processed as if there was no custom consumer implementation.
Can be registered by programmatically or by XML using WanConsumerConfig.WanReplicationPublisher,
WanBatchReplication| Modifier and Type | Method and Description |
|---|---|
void |
init(com.hazelcast.instance.Node node,
String wanReplicationName,
com.hazelcast.config.WanConsumerConfig config)
Initialize the WAN consumer.
|
void |
shutdown()
Callback method to shutdown the WAN replication consumer.
|
void init(com.hazelcast.instance.Node node,
String wanReplicationName,
com.hazelcast.config.WanConsumerConfig config)
ExecutionService to schedule the consumer to run periodically or continually by
having an implementation which uses blocking or spinning locks to check for new events. The implementation is
free however to choose a third approach.node - this nodewanReplicationName - the name of the WanReplicationConfigconfig - the WAN consumer configvoid shutdown()
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.