public class InMemoryHttpTraceRepository extends java.lang.Object implements HttpTraceRepository
HttpTraceRepository.| 构造器和说明 |
|---|
InMemoryHttpTraceRepository() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 HttpTraceRepositorypublic void add(HttpTrace trace)
HttpTraceRepositoryadd 在接口中 HttpTraceRepositorytrace - the trace to add