Class DelegationTokenLoadingCache<K,V>
java.lang.Object
org.apache.hadoop.security.token.delegation.DelegationTokenLoadingCache<K,V>
- All Implemented Interfaces:
Map<K,V>
Cache for delegation tokens that can handle high volume of tokens. A
loading cache will prevent all active tokens from being in memory at the
same time. It will also trigger more requests from the persistent token storage.
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionDelegationTokenLoadingCache(long cacheExpirationMs, long maximumCacheSize, Function<K, V> singleEntryFunction) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleanisEmpty()keySet()voidintsize()values()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
DelegationTokenLoadingCache
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-