类 InMemoryTraceRepository
- java.lang.Object
- org.springframework.boot.actuate.trace.InMemoryTraceRepository
- 所有已实现的接口:
TraceRepository
public class InMemoryTraceRepository extends Object implements TraceRepository
In-memory implementation ofTraceRepository
.
构造器概要
构造器 构造器 说明 InMemoryTraceRepository()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
add(Map<String,Object> map)
Add a newTrace
object at the current time.List<Trace>
findAll()
Find allTrace
objects contained in the repository.void
setCapacity(int capacity)
Set the capacity of the in-memory repository.void
setReverse(boolean reverse)
Flag to say that the repository lists traces in reverse order.
构造器详细资料
InMemoryTraceRepository
public InMemoryTraceRepository()
方法详细资料
setReverse
public void setReverse(boolean reverse)
Flag to say that the repository lists traces in reverse order.- 参数:
reverse
- flag value (default true)
setCapacity
public void setCapacity(int capacity)
Set the capacity of the in-memory repository.- 参数:
capacity
- the capacity
findAll
public List<Trace> findAll()
从接口复制的说明:TraceRepository
Find allTrace
objects contained in the repository.- 指定者:
findAll
在接口中TraceRepository
- 返回:
- the results
add
public void add(Map<String,Object> map)
从接口复制的说明:TraceRepository
Add a newTrace
object at the current time.- 指定者:
add
在接口中TraceRepository
- 参数:
map
- trace information