EventJournalWriter
Persists typed events to a durable replay journal.
Class Diagram
Section titled “Class Diagram”---
title: EventJournalWriter
config:
look: handDrawn
theme: colorful
class:
hideEmptyMembersBox: true
---
classDiagram
class EventJournalWriter {
<<protocol>>
+appendSession(sessionEvent: SessionEvent) boolean [sync, atomic]
+appendTurn(turnEvent: TurnEvent) boolean [sync, atomic]
+close(summary: SessionSummary?) boolean [sync, atomic]
}
Helper Methods
Section titled “Helper Methods”The following helper methods are declared via @method and must be implemented by every runtime. The schema declares the logical protocol contract; each runtime maps async-capable methods to idiomatic sync/async shapes for that language.
| Name | Signature | Runtime shape | Description |
|---|---|---|---|
appendSession |
appendSession(sessionEvent: SessionEvent) -> boolean |
sync, atomic | Append a session event to a durable replay journal |
appendTurn |
appendTurn(turnEvent: TurnEvent) -> boolean |
sync, atomic | Append a turn event to a durable replay journal |
close |
close(summary: SessionSummary?) -> boolean |
sync, atomic | Finalize the journal with an optional session summary |