|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.Base
com.tangosol.net.partition.DefaultKeyAssociator
public class DefaultKeyAssociator
A DefaultKeyAssociator provides key associations on behalf of keys that implement the KeyAssociation
interface.
Field Summary | |
---|---|
protected PartitionedService |
m_service The PartitionedService that this DefaultKeyAssociator is bound to. |
Constructor Summary | |
---|---|
DefaultKeyAssociator() Default constructor. |
Method Summary | |
---|---|
java.lang.Object |
getAssociatedKey(java.lang.Object oKey) Determine the key object to which the specified key object is associated. |
void |
init(PartitionedService service) Initialize the KeyAssociator and bind it to a PartitionedService. |
protected java.lang.Object |
validateKeyAssociation(java.lang.Object oKey) Check to see if the given key contains a circular association. |
Field Detail |
---|
protected PartitionedService m_service
Constructor Detail |
---|
public DefaultKeyAssociator()
Method Detail |
---|
public void init(PartitionedService service)
init
in interface KeyAssociator
service
- the PartitionedService that this associator is being bound topublic java.lang.Object getAssociatedKey(java.lang.Object oKey)
KeyAssociation
interface. Circular associations are not allowed.getAssociatedKey
in interface KeyAssociator
protected java.lang.Object validateKeyAssociation(java.lang.Object oKey)
oKey
- the key to checkjava.lang.RuntimeException
- if there is a circular key association chain, or if the maximum association depth has been reached
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |