Interface GroupManager
-
- All Known Implementing Classes:
GroupManagerImpl
public interface GroupManagerControl's key grouping.- Author:
- Pete Muir
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ObjectgetGroup(Object key)Get the group for a given keyAddressgetPrimaryOwner(Object group)Deprecated.Since 9.0, please useDistributionManager.getCacheTopology()instead.booleanisOwner(Object group)Deprecated.Since 9.0, please useDistributionManager.getCacheTopology()instead.booleanisPrimaryOwner(Object group)Deprecated.Since 9.0, please useDistributionManager.getCacheTopology()instead.
-
-
-
Method Detail
-
getGroup
Object getGroup(Object key)
Get the group for a given key- Parameters:
key- the key for which to get the group- Returns:
- the group, or null if no group is defined for the key
-
isOwner
@Deprecated boolean isOwner(Object group)
Deprecated.Since 9.0, please useDistributionManager.getCacheTopology()instead.Checks if this node is an owner of the group.- Parameters:
group- the group name.- Returns:
trueif this node is an owner of the group,falseotherwise.
-
getPrimaryOwner
@Deprecated Address getPrimaryOwner(Object group)
Deprecated.Since 9.0, please useDistributionManager.getCacheTopology()instead.It returns the primary owner of the group.- Parameters:
group- the group name.- Returns:
- the primary owner of the group.
-
isPrimaryOwner
@Deprecated boolean isPrimaryOwner(Object group)
Deprecated.Since 9.0, please useDistributionManager.getCacheTopology()instead.It checks if this node is the primary owner of the group.- Parameters:
group- the group name.- Returns:
trueif this node is the primary owner of the group,falseotherwise.
-
-