Package at.aimon.memory.postgres
Class DrainResult
java.lang.Object
at.aimon.memory.postgres.DrainResult
Outcome of one
KnowledgeStoreOutboxRelay.drainOnce() pass.
Counts the rows that were claimed in the batch and how each one resolved:
processed— successfully dispatched and removed from the outbox.failed— dispatch raised but the row is still retryable (attempt count incremented,next_attempt_atpushed out).poisoned— dispatch failed for themaxAttempts-th time; the row stays in the table withclaimed_by='POISON'and is excluded from future drains.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintTotal rows claimed in the batch (sum of all three buckets).intintinttoString()
-
Constructor Details
-
DrainResult
public DrainResult(int processed, int failed, int poisoned)
-
-
Method Details