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 AuthCacheService
instance
-
Constructor Summary
Constructors Constructor Description AuthCacheService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
initializeAndRegisterCaches()
NOTE: Can only be called once per instance run.void
register(AuthCache<?,?> cache)
void
unregister(AuthCache<?,?> cache)
void
warmCaches()
-
-
-
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 theAuthCacheService
in it's constructor
-
-