Package org.apache.cassandra.auth
Class CacheRefresher<K,V>
- java.lang.Object
-
- org.apache.cassandra.auth.CacheRefresher<K,V>
-
- All Implemented Interfaces:
java.lang.Runnable
public class CacheRefresher<K,V> extends java.lang.Object implements java.lang.Runnable
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <K,V>
CacheRefresher<K,V>create(java.lang.String name, com.github.benmanes.caffeine.cache.LoadingCache<K,V> cache, java.util.function.BiPredicate<K,V> invalidationCondition)
static <K,V>
CacheRefresher<K,V>create(java.lang.String name, com.github.benmanes.caffeine.cache.LoadingCache<K,V> cache, java.util.function.BiPredicate<K,V> invalidationCondition, java.util.function.BooleanSupplier skipCondition)
void
run()
-
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
create
public static <K,V> CacheRefresher<K,V> create(java.lang.String name, com.github.benmanes.caffeine.cache.LoadingCache<K,V> cache, java.util.function.BiPredicate<K,V> invalidationCondition, java.util.function.BooleanSupplier skipCondition)
-
create
public static <K,V> CacheRefresher<K,V> create(java.lang.String name, com.github.benmanes.caffeine.cache.LoadingCache<K,V> cache, java.util.function.BiPredicate<K,V> invalidationCondition)
-
-