类 InMemoryHttpTraceRepository
- java.lang.Object
- org.springframework.boot.actuate.trace.http.InMemoryHttpTraceRepository
- 所有已实现的接口:
HttpTraceRepository
public class InMemoryHttpTraceRepository extends Object implements HttpTraceRepository
In-memory implementation ofHttpTraceRepository
.- 从以下版本开始:
- 2.0.0
构造器概要
构造器 构造器 说明 InMemoryHttpTraceRepository()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
add(HttpTrace trace)
Adds a trace to the repository.List<HttpTrace>
findAll()
Find allHttpTrace
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.
构造器详细资料
InMemoryHttpTraceRepository
public InMemoryHttpTraceRepository()
方法详细资料
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<HttpTrace> findAll()
从接口复制的说明:HttpTraceRepository
Find allHttpTrace
objects contained in the repository.- 指定者:
findAll
在接口中HttpTraceRepository
- 返回:
- the results
add
public void add(HttpTrace trace)
从接口复制的说明:HttpTraceRepository
Adds a trace to the repository.- 指定者:
add
在接口中HttpTraceRepository
- 参数:
trace
- the trace to add