Interface SessionEventStore
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
InMemorySessionEventStore
Persists and replays session events (request/responses, notifications).
-
Method Summary
Modifier and TypeMethodDescriptionvoidappend(SessionEvent event) Appends an event to the log.longdrain(String sessionId, long cursor, Predicate<SessionEvent> processor) Drains events to the processor one at a time until exhausted or backpressured; returns the last cursor.default List<SessionEvent> Returns all events for the session with sequence number greater thanlastSeq.
-
Method Details
-
append
Appends an event to the log. -
drain
Drains events to the processor one at a time until exhausted or backpressured; returns the last cursor. -
replay
Returns all events for the session with sequence number greater thanlastSeq.
-