CAP Node.js API / cap-core/src / CapReceivedEvent
Defined in: cap-core/src/models/cap-received-event.ts:14
Message as observed on the subscriber side, after inbox persistence.
T = JsonValue
dedupeKey:
string
Defined in: cap-core/src/models/cap-received-event.ts:22
Stable dedupe key; defaults to ${topic}|${group}|${messageId}.
group:
string
Defined in: cap-core/src/models/cap-received-event.ts:16
Consumer group or queue that received the delivery.
optionalheaders?:CapHeaders
Defined in: cap-core/src/models/cap-base-message.ts:21
Optional key/value headers such as trace-id or saga-id.
id:
string
Defined in: cap-core/src/models/cap-base-message.ts:9
Globally unique ID (UUID v4 recommended).
optionallastError?:string|null
Defined in: cap-core/src/models/cap-received-event.ts:34
Last handler error message, if processing failed.
messageId:
string
Defined in: cap-core/src/models/cap-received-event.ts:19
Broker/source message id used for inbox deduplication.
nextRetry:
Date|null
Defined in: cap-core/src/models/cap-received-event.ts:43
When this message becomes eligible for the next retry. null means the first attempt is still pending or the message is terminal.
occurredAt:
string
Defined in: cap-core/src/models/cap-base-message.ts:15
UTC ISO string set by publisher, not the DB timestamp.
payload:
T
Defined in: cap-core/src/models/cap-base-message.ts:18
User-defined payload. Keep it serializable.
processed:
boolean
Defined in: cap-core/src/models/cap-received-event.ts:31
True when handler completed successfully.
optionalprocessedAt?:Date|null
Defined in: cap-core/src/models/cap-received-event.ts:37
When the handler completed successfully.
retryCount:
number
Defined in: cap-core/src/models/cap-received-event.ts:25
How many handler attempts so far.
status:
CapReceivedStatus
Defined in: cap-core/src/models/cap-received-event.ts:28
Current inbox processing state.
topic:
string
Defined in: cap-core/src/models/cap-base-message.ts:12
Logical topic / exchange name, e.g. user.created.