类 SimpleInMemoryRepository<T>
- java.lang.Object
- org.springframework.boot.actuate.metrics.util.SimpleInMemoryRepository<T>
- 类型参数:
T
- the type to store
public class SimpleInMemoryRepository<T> extends Object
Repository utility that stores stuff in memory with period-separated String keys.
嵌套类概要
嵌套类 修饰符和类型 类 说明 static interface
SimpleInMemoryRepository.Callback<T>
Callback used to update a value.
构造器概要
构造器 构造器 说明 SimpleInMemoryRepository()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 long
count()
Iterable<T>
findAll()
Iterable<T>
findAllWithPrefix(String prefix)
T
findOne(String name)
protected NavigableMap<String,T>
getValues()
void
remove(String name)
void
set(String name, T value)
void
setValues(ConcurrentNavigableMap<String,T> values)
T
update(String name, SimpleInMemoryRepository.Callback<T> callback)
构造器详细资料
SimpleInMemoryRepository
public SimpleInMemoryRepository()
方法详细资料
update
public T update(String name, SimpleInMemoryRepository.Callback<T> callback)
count
public long count()
findAllWithPrefix
public Iterable<T> findAllWithPrefix(String prefix)
setValues
public void setValues(ConcurrentNavigableMap<String,T> values)
getValues
protected NavigableMap<String,T> getValues()