|
Oracle® Coherence Java API Reference Release 3.6.1.0 E18814-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.
Note: as of Coherence 3.6 the contract of thegetKeyPartition method has changed and should take into consideration the service's key associator.
| Method Summary | |
|---|---|
PartitionSet |
getAssociatedPartitions(java.lang.Object oKey)Determine the set of partitions that all keys associated with the specified key are assigned to. |
int |
getKeyPartition(java.lang.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(java.lang.Object oKey)
associated key would be assigned to the same partition. 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(java.lang.Object oKey)
getKeyPartition method.oKey - a key in its Object form
|
Oracle® Coherence Java API Reference Release 3.6.1.0 E18814-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||