Class InMemoryRegistryStore<E>
java.lang.Object
io.github.resilience4j.core.registry.InMemoryRegistryStore<E>
- All Implemented Interfaces:
RegistryStore<E>
public class InMemoryRegistryStore<E> extends java.lang.Object implements RegistryStore<E>
Default Implementation Of RegistryStore using ConcurrentHashMap
-
Constructor Summary
Constructors Constructor Description InMemoryRegistryStore() -
Method Summary
Modifier and Type Method Description EcomputeIfAbsent(java.lang.String key, java.util.function.Function<? super java.lang.String,? extends E> mappingFunction)java.util.Optional<E>find(java.lang.String key)EputIfAbsent(java.lang.String key, E value)java.util.Optional<E>remove(java.lang.String name)java.util.Optional<E>replace(java.lang.String name, E newEntry)java.util.Collection<E>values()
-
Constructor Details
-
InMemoryRegistryStore
public InMemoryRegistryStore()
-
-
Method Details
-
computeIfAbsent
public E computeIfAbsent(java.lang.String key, java.util.function.Function<? super java.lang.String,? extends E> mappingFunction)- Specified by:
computeIfAbsentin interfaceRegistryStore<E>
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceRegistryStore<E>
-
find
- Specified by:
findin interfaceRegistryStore<E>
-
remove
- Specified by:
removein interfaceRegistryStore<E>
-
replace
- Specified by:
replacein interfaceRegistryStore<E>
-
values
- Specified by:
valuesin interfaceRegistryStore<E>
-