Package io.debezium.util
Class LRUCacheMap<K,V>
java.lang.Object
io.debezium.util.LRUCacheMap<K,V>
- All Implemented Interfaces:
org.apache.kafka.common.cache.Cache<K,
V>
@NotThreadSafe
public class LRUCacheMap<K,V>
extends Object
implements org.apache.kafka.common.cache.Cache<K,V>
A custom implementation of
LRUCache
that allows exposure
to the underlying delegate's key or values collections.- Author:
- Chris Cranford
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
delegate
-
-
Constructor Details
-
LRUCacheMap
public LRUCacheMap(int maxSize)
-
-
Method Details
-
get
-
put
-
remove
-
size
public long size() -
keySet
-
values
-
toString
-