com.hazelcast.spi
Interface MigrationAwareService

All Known Subinterfaces:
ICacheService
All Known Implementing Classes:
AbstractCacheService, AtomicLongService, AtomicReferenceService, CacheService, CollectionService, CountDownLatchService, ListService, LockServiceImpl, MapService, MultiMapService, QueueService, SemaphoreService, SetService

public interface MigrationAwareService

An interface that can be implemented by SPI services to get notified of partition changes. E.g. if a MapService that start moving its data around because partitions are moving to a different machine.


Method Summary
 void beforeMigration(PartitionMigrationEvent event)
           
 void clearPartitionReplica(int partitionId)
           
 void commitMigration(PartitionMigrationEvent event)
           
 Operation prepareReplicationOperation(PartitionReplicationEvent event)
           
 void rollbackMigration(PartitionMigrationEvent event)
           
 

Method Detail

prepareReplicationOperation

Operation prepareReplicationOperation(PartitionReplicationEvent event)

beforeMigration

void beforeMigration(PartitionMigrationEvent event)

commitMigration

void commitMigration(PartitionMigrationEvent event)

rollbackMigration

void rollbackMigration(PartitionMigrationEvent event)

clearPartitionReplica

void clearPartitionReplica(int partitionId)


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.