Package org.apache.flink.runtime.util
Class DefaultGroupCache<G,K,V>
java.lang.Object
org.apache.flink.runtime.util.DefaultGroupCache<G,K,V>
- All Implemented Interfaces:
GroupCache<G,K, V>
Default implement of
GroupCache. Entries will be expired after timeout.-
Nested Class Summary
Nested Classes -
Method Summary
-
Method Details
-
clear
public void clear()Description copied from interface:GroupCacheclear all cache.- Specified by:
clearin interfaceGroupCache<G,K, V>
-
get
Description copied from interface:GroupCacheGet value in cache.- Specified by:
getin interfaceGroupCache<G,K, V> - Returns:
- value in cache if exists, otherwise null
-
put
Description copied from interface:GroupCachePut group, key and value to cache.- Specified by:
putin interfaceGroupCache<G,K, V>
-
clearCacheForGroup
Description copied from interface:GroupCacheClear all caches of the corresponding group.- Specified by:
clearCacheForGroupin interfaceGroupCache<G,K, V>
-