Uses of Record Class
com.babelqueue.Envelope
Packages that use Envelope
Package
Description
BabelQueue — Polyglot Queues, Simplified.
Optional idempotency helper (ADR-0022): dedupe a consume handler on
meta.id.Optional OpenTelemetry tracing for babelqueue (ADR-0025) — the Java mirror of the Go
babelqueue-go/otel module.-
Uses of Envelope in com.babelqueue
Methods in com.babelqueue that return EnvelopeModifier and TypeMethodDescriptionstatic EnvelopeAnnotate using the envelope's currentattemptsand no error detail.static EnvelopeDeadLetters.annotate(Envelope envelope, String reason, String originalQueue, int attempts, String error, String exception) Return a copy of the envelope with aDeadLetterblock attached, recording why and where it failed.static EnvelopeParse a raw JSON body into anEnvelope.static EnvelopeEnvelopeCodec.fromMessage(PolyglotMessage message) Build the envelope from aPolyglotMessageon the default queue.static EnvelopeEnvelopeCodec.fromMessage(PolyglotMessage message, String queue) Build the envelope from aPolyglotMessage.static EnvelopeBuild the canonical envelope for a(urn, data)pair on the default queue.static EnvelopeBuild the canonical envelope for a(urn, data)pair.static EnvelopeReturns a copy ofenvreset for reprocessing: thedead_letterblock is removed andattemptsreset to 0;job,trace_id,dataandmetaare preserved verbatim.Methods in com.babelqueue that return types with arguments of type EnvelopeModifier and TypeMethodDescriptionRedrive.Options.select()Returns the value of theselectrecord component.Methods in com.babelqueue with parameters of type EnvelopeModifier and TypeMethodDescriptionstatic booleanWhether a consumer should accept this envelope: rejects a missing URN, an unsupportedmeta.schema_version, missingdataor a blanktrace_id— the consumer-side counterpart to the producer JSON Schema.static EnvelopeAnnotate using the envelope's currentattemptsand no error detail.static EnvelopeDeadLetters.annotate(Envelope envelope, String reason, String originalQueue, int attempts, String error, String exception) Return a copy of the envelope with aDeadLetterblock attached, recording why and where it failed.static StringEncode the envelope as compact UTF-8 JSON.static EnvelopeReturns a copy ofenvreset for reprocessing: thedead_letterblock is removed andattemptsreset to 0;job,trace_id,dataandmetaare preserved verbatim.static StringThe message URN — the canonicaljob, with theurnalias resolved byEnvelopeCodec.decode(java.lang.String).Method parameters in com.babelqueue with type arguments of type EnvelopeModifier and TypeMethodDescriptionConstructor parameters in com.babelqueue with type arguments of type Envelope -
Uses of Envelope in com.babelqueue.idempotency
Methods in com.babelqueue.idempotency with parameters of type Envelope -
Uses of Envelope in com.babelqueue.otel
Methods in com.babelqueue.otel with parameters of type Envelope