Class InMemoryHttpExchangeRepository
java.lang.Object
org.springframework.boot.actuate.web.exchanges.InMemoryHttpExchangeRepository
- All Implemented Interfaces:
HttpExchangeRepository
In-memory implementation of
HttpExchangeRepository
.- Since:
- 3.0.0
- Author:
- Dave Syer, Olivier Bourgain
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(HttpExchange exchange) Adds anHttpExchange
instance to the repository.findAll()
Find allHttpExchange
instances 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 exchanges in reverse order.
-
Constructor Details
-
InMemoryHttpExchangeRepository
public InMemoryHttpExchangeRepository()
-
-
Method Details
-
setReverse
public void setReverse(boolean reverse) Flag to say that the repository lists exchanges 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:HttpExchangeRepository
Find allHttpExchange
instances contained in the repository.- Specified by:
findAll
in interfaceHttpExchangeRepository
- Returns:
- all contained HTTP exchanges
-
add
Description copied from interface:HttpExchangeRepository
Adds anHttpExchange
instance to the repository.- Specified by:
add
in interfaceHttpExchangeRepository
- Parameters:
exchange
- the HTTP exchange to add
-