Package org.apache.cassandra.auth
Class CIDRPermissionsCache
java.lang.Object
org.apache.cassandra.auth.AuthCache<RoleResource,CIDRPermissions>
org.apache.cassandra.auth.CIDRPermissionsCache
- All Implemented Interfaces:
AuthCacheMBean,Shutdownable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.cassandra.auth.AuthCache
AuthCache.BulkLoader<K,V> -
Field Summary
FieldsFields inherited from class org.apache.cassandra.auth.AuthCache
cache, MBEAN_NAME_BASE -
Constructor Summary
ConstructorsConstructorDescriptionCIDRPermissionsCache(Function<RoleResource, CIDRPermissions> loadFunction, Supplier<Map<RoleResource, CIDRPermissions>> bulkLoadFunction, BooleanSupplier cacheEnabledDelegate) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninvalidateCidrPermissions(String roleName) Invalidate a role from CIDR permissions cacheprotected voidMethods inherited from class org.apache.cassandra.auth.AuthCache
awaitTermination, get, getActiveUpdate, getAll, getEstimatedSize, getMaxEntries, getObjectName, getUpdateInterval, getValidity, init, initCache, invalidate, invalidate, isTerminated, setActiveUpdate, setMaxEntries, setUpdateInterval, setValidity, shutdown, shutdownAllAndWait, shutdownNow, warm
-
Field Details
-
CACHE_NAME
- See Also:
-
-
Constructor Details
-
CIDRPermissionsCache
public CIDRPermissionsCache(Function<RoleResource, CIDRPermissions> loadFunction, Supplier<Map<RoleResource, CIDRPermissions>> bulkLoadFunction, BooleanSupplier cacheEnabledDelegate)
-
-
Method Details
-
invalidateCidrPermissions
Invalidate a role from CIDR permissions cache- Parameters:
roleName- role for which to invalidate the cache- Returns:
- boolean returns true if given role found in the cache and invalidated, otherwise returns false
-
unregisterMBean
protected void unregisterMBean()- Overrides:
unregisterMBeanin classAuthCache<RoleResource,CIDRPermissions>
-