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 Classes
    Modifier and Type
    Interface
    Description
    static final record 
    The entity returned the full history within its size limit.
    static final record 
    The entity could not deliver the full history within its in-memory size limit.