public interface WanConsumer
WanPublisher. 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
void init(String wanReplicationName, WanConsumerConfig config)
ExecutionServiceto 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 another approach.
wanReplicationName- the name of the
config- the WAN consumer config
Copyright © 2022 Hazelcast, Inc.. All rights reserved.