Module agentforge4j.runtime
Class InMemoryWorkflowEventLog
java.lang.Object
com.agentforge4j.runtime.repository.InMemoryWorkflowEventLog
- All Implemented Interfaces:
WorkflowEventLog
In-memory implementation of
WorkflowEventLog.
Events are stored per-run in insertion order. The getEvents method
returns an unmodifiable snapshot. The log is append-only — no update or delete is exposed.
Thread-safe for concurrent append and read.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappend(WorkflowEvent event) Persistseventfor later retrieval withWorkflowEventLog.getEvents(String).Returns events forrunIdin a stable, typically chronological order defined by the implementation.
-
Constructor Details
-
InMemoryWorkflowEventLog
public InMemoryWorkflowEventLog()Creates an empty log.
-
-
Method Details
-
append
Description copied from interface:WorkflowEventLogPersistseventfor later retrieval withWorkflowEventLog.getEvents(String).- Specified by:
appendin interfaceWorkflowEventLog- Parameters:
event- non-null event to store
-
getEvents
Description copied from interface:WorkflowEventLogReturns events forrunIdin a stable, typically chronological order defined by the implementation.- Specified by:
getEventsin interfaceWorkflowEventLog- Parameters:
runId- run to query
-