Package org.apache.jena.atlas.lib.cache
Class CacheSetSync<T>
- java.lang.Object
-
- org.apache.jena.atlas.lib.cache.CacheSetSync<T>
-
-
Constructor Summary
Constructors Constructor Description CacheSetSync(CacheSet<T> cache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(T e)voidclear()booleancontains(T obj)booleanisEmpty()voidremove(T obj)voidsetDropHandler(java.util.function.Consumer<T> dropHandler)Register a callback - called when an object is dropped from the cache (optional operation)longsize()
-
-
-
Method Detail
-
setDropHandler
public void setDropHandler(java.util.function.Consumer<T> dropHandler)
Description copied from interface:CacheSetRegister a callback - called when an object is dropped from the cache (optional operation)- Specified by:
setDropHandlerin interfaceCacheSet<T>
-
-