public class InMemoryTraceRepository extends Object implements TraceRepository
TraceRepository
.Constructor and Description |
---|
InMemoryTraceRepository() |
Modifier and Type | Method and Description |
---|---|
void |
add(Map<String,Object> map)
Add a new
Trace object at the current time. |
List<Trace> |
findAll()
Find all
Trace 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<Trace> findAll()
TraceRepository
Trace
objects contained in the repository.findAll
in interface TraceRepository
public void add(Map<String,Object> map)
TraceRepository
Trace
object at the current time.add
in interface TraceRepository
map
- trace informationCopyright © 2018 Pivotal Software, Inc.. All rights reserved.