Class InMemoryHttpTraceRepository

java.lang.Object
org.springframework.boot.actuate.trace.http.InMemoryHttpTraceRepository
All Implemented Interfaces:
HttpTraceRepository

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

      public List<HttpTrace> findAll()
      Description copied from interface: HttpTraceRepository
      Find all HttpTrace objects contained in the repository.
      Specified by:
      findAll in interface HttpTraceRepository
      Returns:
      the results
    • add

      public void add(HttpTrace trace)
      Description copied from interface: HttpTraceRepository
      Adds a trace to the repository.
      Specified by:
      add in interface HttpTraceRepository
      Parameters:
      trace - the trace to add