|
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 | |||||||
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_serviceThe PartitionedService that this DefaultKeyAssociator is bound to. |
| Constructor Summary | |
|---|---|
DefaultKeyAssociator()Default constructor. |
|
| Method Summary | |
|---|---|
Object |
getAssociatedKey(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 Object |
validateKeyAssociation(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 KeyAssociatorservice - the PartitionedService that this associator is being bound topublic Object getAssociatedKey(Object oKey)
KeyAssociation interface. Circular associations are not allowed.getAssociatedKey in interface KeyAssociatorprotected Object validateKeyAssociation(Object oKey)
oKey - the key to checkRuntimeException - if there is a circular key association chain, or if the maximum association depth has been reached
|
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 | |||||||