Class InMemoryStateMachineTraceRepository
java.lang.Object
org.springframework.statemachine.boot.actuate.InMemoryStateMachineTraceRepository
- All Implemented Interfaces:
StateMachineTraceRepository
public class InMemoryStateMachineTraceRepository
extends Object
implements StateMachineTraceRepository
In-memory implementation of
StateMachineTraceRepository
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a newStateMachineTrace
object at the current time.findAll()
Find allStateMachineTrace
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.
-
Constructor Details
-
InMemoryStateMachineTraceRepository
public InMemoryStateMachineTraceRepository()
-
-
Method Details
-
setReverse
public void setReverse(boolean reverse) Flag to say that the repository lists traces in reverse order.- Parameters:
reverse
- flag value (default true)
-
setCapacity
public void setCapacity(int capacity) Set the capacity of the in-memory repository.- Parameters:
capacity
- the capacity
-
findAll
Description copied from interface:StateMachineTraceRepository
Find allStateMachineTrace
objects contained in the repository.- Specified by:
findAll
in interfaceStateMachineTraceRepository
- Returns:
- the results
-
add
Description copied from interface:StateMachineTraceRepository
Add a newStateMachineTrace
object at the current time.- Specified by:
add
in interfaceStateMachineTraceRepository
- Parameters:
map
- trace information
-