|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface KeyPartitioningStrategy
A KeyPartitioningStrategy is a pluggable strategy for assigning keys to specific partitions. <p/> Note: as of Coherence 3.6 the contract of the getKeyPartition
method has changed and should take into consideration the service's key associator
.
Method Summary | |
---|---|
PartitionSet |
getAssociatedPartitions(Object oKey) Determine the set of partitions that all keys associated with the specified key are assigned to. |
int |
getKeyPartition(Object oKey) Determine the partition to which a particular key should be assigned. |
void |
init(PartitionedService service) Initialize the KeyPartitioningStrategy and bind it to the specified PartitionedService. |
Method Detail |
---|
void init(PartitionedService service)
service
- the PartitionedService that this strategy is being bound toint getKeyPartition(Object oKey)
associated key
would be assigned to the same partition. <p/> The resulting partition must be in the range [0..N-1], where N is the value returned from PartitionedService.getPartitionCount()
.oKey
- a key in its Object formPartitionAssignmentStrategy.getPartitionOwner(int)
PartitionSet getAssociatedPartitions(Object oKey)
getKeyPartition
method.oKey
- a key in its Object form
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |