Class IdempotencyEntry

java.lang.Object
at.aimon.session.web.spi.IdempotencyEntry

public final class IdempotencyEntry extends Object
Immutable IdempotencyStore entry.

Tracks the lifecycle of one idempotencyKey: which conversation it targeted, the input hash, current IdempotencyEntry.Status, the holder that owns the in-flight turn, the cached final result (when DONE), and timestamps used for primary / secondary TTL bookkeeping (design §9.2).

Invariants

  • Method Details

    • builder

      public static IdempotencyEntry.Builder builder()
    • getKey

      public String getKey()
    • getConversationId

      public at.aimon.core.agent.conversation.ConversationId getConversationId()
    • getInputHash

      public String getInputHash()
    • getStatus

      public IdempotencyEntry.Status getStatus()
    • getHolderId

      public Optional<String> getHolderId()
    • getResult

      public Optional<at.aimon.core.agent.AgentExecutionResult> getResult()
    • getCreatedAt

      public Instant getCreatedAt()
    • getLastTouchedAt

      public Instant getLastTouchedAt()