Package org.apache.cassandra.auth
Class AuthCacheService
- java.lang.Object
-
- org.apache.cassandra.auth.AuthCacheService
-
@ThreadSafe public class AuthCacheService extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static AuthCacheServiceinstance
-
Constructor Summary
Constructors Constructor Description AuthCacheService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidinitializeAndRegisterCaches()NOTE: Can only be called once per instance run.voidregister(AuthCache<?,?> cache)voidunregister(AuthCache<?,?> cache)voidwarmCaches()
-
-
-
Field Detail
-
instance
public static final AuthCacheService instance
-
-
Method Detail
-
register
public void register(AuthCache<?,?> cache)
-
unregister
public void unregister(AuthCache<?,?> cache)
-
warmCaches
public void warmCaches()
-
initializeAndRegisterCaches
public static void initializeAndRegisterCaches()
NOTE: Can only be called once per instance run. We have a couple of static initializer functions to create caches scattered across various classes, some solo and some with multiple member variables. As we expect these caches to be created and initialized in one logical block, we tie them together and use them here. Note: We also register the PasswordAuthenticator cache with theAuthCacheServicein it's constructor
-
-