Class InMemoryHttpExchangeRepository

java.lang.Object
org.springframework.boot.actuate.web.exchanges.InMemoryHttpExchangeRepository
All Implemented Interfaces:
HttpExchangeRepository

public class InMemoryHttpExchangeRepository extends Object implements HttpExchangeRepository
In-memory implementation of HttpExchangeRepository.
Since:
3.0.0
Author:
Dave Syer, Olivier Bourgain
  • 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

      public List<HttpExchange> findAll()
      Description copied from interface: HttpExchangeRepository
      Find all HttpExchange instances contained in the repository.
      Specified by:
      findAll in interface HttpExchangeRepository
      Returns:
      all contained HTTP exchanges
    • add

      public void add(HttpExchange exchange)
      Description copied from interface: HttpExchangeRepository
      Adds an HttpExchange instance to the repository.
      Specified by:
      add in interface HttpExchangeRepository
      Parameters:
      exchange - the HTTP exchange to add