public class InMemoryStateMachineTraceRepository extends java.lang.Object implements StateMachineTraceRepository
StateMachineTraceRepository
.Constructor and Description |
---|
InMemoryStateMachineTraceRepository() |
Modifier and Type | Method and Description |
---|---|
void |
add(java.util.Map<java.lang.String,java.lang.Object> map)
Add a new
StateMachineTrace object at the current time. |
java.util.List<StateMachineTrace> |
findAll()
Find all
StateMachineTrace 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<StateMachineTrace> findAll()
StateMachineTraceRepository
StateMachineTrace
objects contained in the repository.findAll
in interface StateMachineTraceRepository
public void add(java.util.Map<java.lang.String,java.lang.Object> map)
StateMachineTraceRepository
StateMachineTrace
object at the current time.add
in interface StateMachineTraceRepository
map
- trace information