Package at.aimon.session.web.spi
Class IdempotencyEntry
java.lang.Object
at.aimon.session.web.spi.IdempotencyEntry
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
IdempotencyEntry.Status.IN_FLIGHTentries always carry a non-nullholderId(the holder-loss sweeper depends on this — design §6.3 D).IdempotencyEntry.Status.DONEentries may carry a nullholderIdonce cleanup releases it.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder forIdempotencyEntry.static enumLifecycle status of an idempotency entry. -
Method Summary
Modifier and TypeMethodDescriptionstatic IdempotencyEntry.Builderbuilder()at.aimon.core.agent.conversation.ConversationIdgetKey()Optional<at.aimon.core.agent.AgentExecutionResult>
-
Method Details
-
builder
-
getKey
-
getConversationId
public at.aimon.core.agent.conversation.ConversationId getConversationId() -
getInputHash
-
getStatus
-
getHolderId
-
getResult
-
getCreatedAt
-
getLastTouchedAt
-