Class SelectiveCache
java.lang.Object
io.fluxcapacitor.javaclient.persisting.caching.SelectiveCache
- All Implemented Interfaces:
Cache,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaggregateSelector(Class<?> type) voidclear()voidclose()<T> Tcompute(Object id, BiFunction<? super Object, ? super T, ? extends T> mappingFunction) <T> TcomputeIfAbsent(Object id, Function<? super Object, T> mappingFunction) <T> TcomputeIfPresent(Object id, BiFunction<? super Object, ? super T, ? extends T> mappingFunction) booleancontainsKey(Object id) <T> TputIfAbsent(Object id, Object value) registerEvictionListener(Consumer<CacheEvictionEvent> listener) <T> Tintsize()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.fluxcapacitor.javaclient.persisting.caching.Cache
getOrDefault, isEmpty
-
Constructor Details
-
SelectiveCache
-
-
Method Details
-
aggregateSelector
-
put
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceCache
-
computeIfAbsent
- Specified by:
computeIfAbsentin interfaceCache
-
computeIfPresent
public <T> T computeIfPresent(Object id, BiFunction<? super Object, ? super T, ? extends T> mappingFunction) - Specified by:
computeIfPresentin interfaceCache
-
compute
-
get
-
containsKey
- Specified by:
containsKeyin interfaceCache
-
remove
-
clear
public void clear() -
size
public int size() -
registerEvictionListener
- Specified by:
registerEvictionListenerin interfaceCache
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCache
-