public interface WanReplicationPublisher
Modifier and Type | Method and Description |
---|---|
void |
checkWanReplicationQueues()
Checks the size of the WAN replication queue and throws an
exception if it has been reached or crossed.
|
void |
publishReplicationEvent(String serviceName,
ReplicationEventObject eventObject)
Publish the
eventObject WAN replication event. |
void |
publishReplicationEvent(WanReplicationEvent wanReplicationEvent)
Publishes the
wanReplicationEvent on this publisher. |
void |
publishReplicationEventBackup(String serviceName,
ReplicationEventObject eventObject)
Publish the
eventObject WAN replication event backup. |
void publishReplicationEvent(String serviceName, ReplicationEventObject eventObject)
eventObject
WAN replication event. The event may be dropped if queue capacity has been reached.serviceName
- the service publishing the eventeventObject
- the replication eventvoid publishReplicationEventBackup(String serviceName, ReplicationEventObject eventObject)
eventObject
WAN replication event backup. The event may be dropped if queue capacity has been reached.serviceName
- the service publishing the eventeventObject
- the replication backup eventvoid publishReplicationEvent(WanReplicationEvent wanReplicationEvent)
wanReplicationEvent
on this publisher. This can be used to forward received events
on the target cluster.wanReplicationEvent
- the WAN event to publishvoid checkWanReplicationQueues()
WANReplicationQueueFullException
- if queue capacity has been reached and
WanPublisherConfig.getQueueFullBehavior()
is
set to WANQueueFullBehavior.THROW_EXCEPTION
Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.