com.hazelcast.core
Interface PartitionAware<T>

Type Parameters:
T - key type
All Known Implementing Classes:
PartitionAwareKey

public interface PartitionAware<T>

PartitionAware allows implementing keys to be located on the same member or implementing tasks to be executed on getPartitionKey()'s owner member. This makes related data to be stored in the same location. (See data-affinity.)


Method Summary
 T getPartitionKey()
          The key object that will be used by Hazelcast to specify the partition.
 

Method Detail

getPartitionKey

T getPartitionKey()
The key object that will be used by Hazelcast to specify the partition. You should give the same key for objects that you want them to locate in the same partition.

Returns:
partition key


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