Package akka.javasdk.agent
Interface SessionHistoryResult
- All Known Implementing Classes:
SessionHistoryResult.Loaded,SessionHistoryResult.Truncated
public sealed interface SessionHistoryResult
permits SessionHistoryResult.Loaded, SessionHistoryResult.Truncated
Outcome of
SessionMemoryEntity.fetchHistory(akka.javasdk.agent.SessionMemoryEntity.GetHistoryCmd).
Either SessionHistoryResult.Loaded, carrying the SessionHistory the caller can use directly, or
SessionHistoryResult.Truncated, signalling that the entity dropped older messages because of its size limit
and the caller should stream the journal in [fromSequenceNr, toSequenceNr] to reconstruct
the full history.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordThe entity returned the full history within its size limit.static final recordThe entity could not deliver the full history within its in-memory size limit.