com.hazelcast.spi
Class PartitionMigrationEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.hazelcast.spi.PartitionMigrationEvent
All Implemented Interfaces:
Serializable

public class PartitionMigrationEvent
extends EventObject

An EventObject for a partition migration. Can be used by SPI services to get a callback to listen to partition migration. See MigrationAwareService for more info.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
PartitionMigrationEvent(MigrationEndpoint migrationEndpoint, int partitionId)
           
 
Method Summary
 MigrationEndpoint getMigrationEndpoint()
           
 int getPartitionId()
           
 String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PartitionMigrationEvent

public PartitionMigrationEvent(MigrationEndpoint migrationEndpoint,
                               int partitionId)
Method Detail

getMigrationEndpoint

public MigrationEndpoint getMigrationEndpoint()

getPartitionId

public int getPartitionId()

toString

public String toString()
Overrides:
toString in class EventObject


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