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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(HttpExchange exchange) Adds anHttpExchangeinstance to the repository.findAll()Find allHttpExchangeinstances contained in the repository.voidsetCapacity(int capacity) Set the capacity of the in-memory repository.voidsetReverse(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:HttpExchangeRepositoryFind allHttpExchangeinstances contained in the repository.- Specified by:
findAllin interfaceHttpExchangeRepository- Returns:
- all contained HTTP exchanges
-
add
Description copied from interface:HttpExchangeRepositoryAdds anHttpExchangeinstance to the repository.- Specified by:
addin interfaceHttpExchangeRepository- Parameters:
exchange- the HTTP exchange to add
-