public class InMemoryHttpTraceRepository extends java.lang.Object implements HttpTraceRepository
HttpTraceRepository.| Constructor and Description |
|---|
InMemoryHttpTraceRepository() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(HttpTrace trace)
Adds a trace to the repository.
|
java.util.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 java.util.List<HttpTrace> findAll()
HttpTraceRepositoryHttpTrace objects contained in the repository.findAll in interface HttpTraceRepositorypublic void add(HttpTrace trace)
HttpTraceRepositoryadd in interface HttpTraceRepositorytrace - the trace to add