T - WAN event container type (used for replication and migration inside the
            cluster)public interface WanMigrationAwarePublisher<T>
None of the methods of this interface is expected to block or fail.
PartitionMigrationEvent, 
MigrationAwareService| Modifier and Type | Method and Description | 
|---|---|
| default void | collectAllServiceNamespaces(com.hazelcast.internal.partition.PartitionReplicationEvent event,
                           Set<com.hazelcast.internal.services.ServiceNamespace> namespaces)Collect the namespaces of all WAN event containers that should be replicated
 by the replication event. | 
| void | onMigrationCommit(com.hazelcast.internal.partition.PartitionMigrationEvent event)Indicates that migration is committing for a given partition | 
| void | onMigrationRollback(com.hazelcast.internal.partition.PartitionMigrationEvent event)Indicates that migration is rolling back for a given partition | 
| void | onMigrationStart(com.hazelcast.internal.partition.PartitionMigrationEvent event)Indicates that migration started for a given partition | 
| default T | prepareEventContainerReplicationData(com.hazelcast.internal.partition.PartitionReplicationEvent event,
                                    Collection<com.hazelcast.internal.services.ServiceNamespace> namespaces)Returns a container containing the WAN events for the given replication
  eventandnamespacesto be replicated. | 
| default void | processEventContainerReplicationData(int partitionId,
                                    T eventContainer)Processes the WAN event container received through intra-cluster replication
 or migration. | 
void onMigrationStart(com.hazelcast.internal.partition.PartitionMigrationEvent event)
event - the migration eventvoid onMigrationCommit(com.hazelcast.internal.partition.PartitionMigrationEvent event)
event - the migration eventvoid onMigrationRollback(com.hazelcast.internal.partition.PartitionMigrationEvent event)
event - the migration eventdefault T prepareEventContainerReplicationData(com.hazelcast.internal.partition.PartitionReplicationEvent event, Collection<com.hazelcast.internal.services.ServiceNamespace> namespaces)
event and namespaces to be replicated. The replication
 here refers to the intra-cluster replication between members in a single
 cluster and does not refer to WAN replication, e.g. between two clusters.
 Invoked when migrating WAN replication data between members in a cluster.event - the replication eventnamespaces - namespaces which will be replicatedprocessEventContainerReplicationData(int, Object)default void processEventContainerReplicationData(int partitionId,
                                                  T eventContainer)
partitionId or it may append the given
 eventContainer to the existing events.
 Invoked when migrating WAN replication data between members in a cluster.partitionId - partition ID which is being replicated or migratedeventContainer - the WAN event containerprepareEventContainerReplicationData(PartitionReplicationEvent, Collection)default void collectAllServiceNamespaces(com.hazelcast.internal.partition.PartitionReplicationEvent event,
                                         Set<com.hazelcast.internal.services.ServiceNamespace> namespaces)
event - the replication eventnamespaces - the set in which namespaces should be addedCopyright © 2020 Hazelcast, Inc.. All rights reserved.