Top Description Fields Constructors Methods
io.github.resilience4j.core.registry

public Class InMemoryRegistryStore<E>

extends Object
implements RegistryStore<E>
Class Inheritance
All Implemented Interfaces
io.github.resilience4j.core.RegistryStore
Imports
io.github.resilience4j.core.RegistryStore, java.util.Collection, .Optional, java.util.concurrent.ConcurrentHashMap, .ConcurrentMap, java.util.function.Function

Default Implementation Of RegistryStore using ConcurrentHashMap

Field Summary

Modifier and TypeField and Description
private final ConcurrentMap<String, E>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public E
public Optional<E>
public E
public Optional<E>
public Optional<E>
public Collection<E>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

entryMapback to summary
private final ConcurrentMap<String, E> entryMap

Constructor Detail

InMemoryRegistryStoreback to summary
public InMemoryRegistryStore()

Method Detail

computeIfAbsentback to summary
public E computeIfAbsent(String key, Function<? super String, ? extends E> mappingFunction)

Implements io.github.resilience4j.core.RegistryStore.computeIfAbsent.

Annotations
@Override
findback to summary
public Optional<E> find(String key)

Implements io.github.resilience4j.core.RegistryStore.find.

Annotations
@Override
putIfAbsentback to summary
public E putIfAbsent(String key, E value)

Implements io.github.resilience4j.core.RegistryStore.putIfAbsent.

Annotations
@Override
removeback to summary
public Optional<E> remove(String name)

Implements io.github.resilience4j.core.RegistryStore.remove.

Annotations
@Override
replaceback to summary
public Optional<E> replace(String name, E newEntry)

Implements io.github.resilience4j.core.RegistryStore.replace.

Annotations
@Override
valuesback to summary
public Collection<E> values()

Implements io.github.resilience4j.core.RegistryStore.values.

Annotations
@Override