@Deprecated
public class RequiredRoles
extends java.lang.Object
Region's required roles.
Configuration of required roles is accomplished using the Region's
MembershipAttributes.
A Role may be present in the distributed system even if
it the Role is not present in the Region membership. This would occur
if none of the members filling that Role currently have a Cache or the
specific Region created. In this case the Role is considered to be
absent for that Region.Role| Constructor and Description |
|---|
RequiredRoles()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.Set<Role> |
checkForRequiredRoles(Region<?,?> region)
Deprecated.
Returns a set of any currently missing required roles for the specified region.
|
static boolean |
isRoleInRegionMembership(Region<?,?> region,
Role role)
Deprecated.
|
static java.util.Set<Role> |
waitForRequiredRoles(Region<?,?> region,
long timeout)
Deprecated.
Returns a set of any currently missing required roles for the specified region.
|
public static java.util.Set<Role> checkForRequiredRoles(Region<?,?> region)
region - the region to check for missing required rolesjava.lang.IllegalStateException - if region is not configured with required rolespublic static java.util.Set<Role> waitForRequiredRoles(Region<?,?> region, long timeout) throws java.lang.InterruptedException
region - the region to check for missing required rolestimeout - milliseconds to wait for any missing required rolesjava.lang.NullPointerException - if region is nulljava.lang.InterruptedException - if thread is interrupted while waitingjava.lang.IllegalStateException - if region is not configured with required roles