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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a newStateMachineTraceobject at the current time.findAll()Find allStateMachineTraceobjects contained in the repository.voidsetCapacity(int capacity) Set the capacity of the in-memory repository.voidsetReverse(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:StateMachineTraceRepositoryFind allStateMachineTraceobjects contained in the repository.- Specified by:
findAllin interfaceStateMachineTraceRepository- Returns:
- the results
-
add
Description copied from interface:StateMachineTraceRepositoryAdd a newStateMachineTraceobject at the current time.- Specified by:
addin interfaceStateMachineTraceRepository- Parameters:
map- trace information
-