public class InMemoryHttpTraceRepository extends Object implements HttpTraceRepository
HttpTraceRepository
.Constructor and Description |
---|
InMemoryHttpTraceRepository() |
Modifier and Type | Method and Description |
---|---|
void |
add(HttpTrace trace)
Adds a trace to the repository.
|
List<HttpTrace> |
findAll()
Find all
HttpTrace 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.
|
public void setReverse(boolean reverse)
reverse
- flag value (default true)public void setCapacity(int capacity)
capacity
- the capacitypublic List<HttpTrace> findAll()
HttpTraceRepository
HttpTrace
objects contained in the repository.findAll
in interface HttpTraceRepository
public void add(HttpTrace trace)
HttpTraceRepository
add
in interface HttpTraceRepository
trace
- the trace to addCopyright © 2018 Pivotal Software, Inc.. All rights reserved.