Class InMemoryHttpTraceRepository
java.lang.Object
org.springframework.boot.actuate.trace.http.InMemoryHttpTraceRepository
- All Implemented Interfaces:
HttpTraceRepository
In-memory implementation of
HttpTraceRepository
.- Since:
- 2.0.0
- Author:
- Dave Syer, Olivier Bourgain
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a trace to the repository.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.
-
Constructor Details
-
InMemoryHttpTraceRepository
public InMemoryHttpTraceRepository()
-
-
Method Details
-
setReverse
public void setReverse(boolean reverse) Flag to say that the repository lists traces in reverse order.- Parameters:
reverse
- flag value (default true)
-
setCapacity
public void setCapacity(int capacity) Set the capacity of the in-memory repository.- Parameters:
capacity
- the capacity
-
findAll
Description copied from interface:HttpTraceRepository
Find allHttpTrace
objects contained in the repository.- Specified by:
findAll
in interfaceHttpTraceRepository
- Returns:
- the results
-
add
Description copied from interface:HttpTraceRepository
Adds a trace to the repository.- Specified by:
add
in interfaceHttpTraceRepository
- Parameters:
trace
- the trace to add
-