Package com.tnsai.coordination.decision
Interface DecisionTraceStore
- All Known Implementing Classes:
InMemoryDecisionTraceStore
public interface DecisionTraceStore
Persistent store for group decision traces.
Enables auditing and replay of past decisions.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears all stored decisions.Retrieves a decision by its ID.list()Lists all stored decisions, newest first.listByTopic(String topic) Lists decisions for a specific topic.voidsave(DecisionResult result) Saves a decision result.intsize()Returns the number of stored decisions.
-
Method Details
-
save
Saves a decision result.- Parameters:
result- the decision to store
-
get
Retrieves a decision by its ID.- Parameters:
decisionId- unique decision identifier- Returns:
- the decision if found
-
list
List<DecisionResult> list()Lists all stored decisions, newest first.- Returns:
- all decisions
-
listByTopic
Lists decisions for a specific topic.- Parameters:
topic- the decision topic- Returns:
- matching decisions, newest first
-
size
int size()Returns the number of stored decisions. -
clear
void clear()Clears all stored decisions.
-