Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- accepts(Envelope) - Static method in class com.babelqueue.EnvelopeCodec
-
Whether a consumer should accept this envelope: rejects a missing URN, an unsupported
meta.schema_version, missingdataor a blanktrace_id— the consumer-side counterpart to the producer JSON Schema. - annotate(Envelope, String, String) - Static method in class com.babelqueue.DeadLetters
-
Annotate using the envelope's current
attemptsand no error detail. - annotate(Envelope, String, String, int, String, String) - Static method in class com.babelqueue.DeadLetters
-
Return a copy of the envelope with a
DeadLetterblock attached, recording why and where it failed. - attempts() - Method in record class com.babelqueue.DeadLetter
-
Returns the value of the
attemptsrecord component. - attempts() - Method in record class com.babelqueue.Envelope
-
Returns the value of the
attemptsrecord component.
B
- BabelQueueException - Exception in com.babelqueue
-
Base unchecked exception for all BabelQueue failures.
- BabelQueueException(String) - Constructor for exception com.babelqueue.BabelQueueException
- BabelQueueException(String, Throwable) - Constructor for exception com.babelqueue.BabelQueueException
C
- com.babelqueue - package com.babelqueue
-
BabelQueue — Polyglot Queues, Simplified.
- createdAt() - Method in record class com.babelqueue.Meta
-
Returns the value of the
createdAtrecord component.
D
- data() - Method in record class com.babelqueue.Envelope
-
Returns the value of the
datarecord component. - DEAD_LETTER - Static variable in class com.babelqueue.UnknownUrnStrategy
-
Route to the dead-letter queue.
- deadLetter() - Method in record class com.babelqueue.Envelope
-
Returns the value of the
deadLetterrecord component. - DeadLetter - Record Class in com.babelqueue
-
The additive block appended to an
Envelopewhen a message is dead-lettered. - DeadLetter(String, String, String, long, String, int, String) - Constructor for record class com.babelqueue.DeadLetter
-
Creates an instance of a
DeadLetterrecord class. - DeadLetters - Class in com.babelqueue
-
Builds the additive
dead_letterblock for anEnvelope. - decode(String) - Static method in class com.babelqueue.EnvelopeCodec
-
Parse a raw JSON body into an
Envelope. - DELETE - Static variable in class com.babelqueue.UnknownUrnStrategy
-
Drop the message.
E
- encode(Envelope) - Static method in class com.babelqueue.EnvelopeCodec
-
Encode the envelope as compact UTF-8 JSON.
- Envelope - Record Class in com.babelqueue
-
The canonical BabelQueue wire message: a strict, language-neutral JSON shape (
{job, trace_id, data, meta, attempts}) that every SDK produces and consumes identically — no language-specific serialization on the wire. - Envelope(String, String, Map<String, Object>, Meta, int, DeadLetter) - Constructor for record class com.babelqueue.Envelope
-
Creates an instance of a
Enveloperecord class. - EnvelopeCodec - Class in com.babelqueue
-
Builds, encodes and decodes the canonical BabelQueue envelope — the single Java implementation of the wire format.
- equals(Object) - Method in record class com.babelqueue.DeadLetter
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.babelqueue.Envelope
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.babelqueue.Meta
-
Indicates whether some other object is "equal to" this one.
- error() - Method in record class com.babelqueue.DeadLetter
-
Returns the value of the
errorrecord component. - exception() - Method in record class com.babelqueue.DeadLetter
-
Returns the value of the
exceptionrecord component.
F
- FAIL - Static variable in class com.babelqueue.UnknownUrnStrategy
-
Surface an error; let the worker decide.
- failedAt() - Method in record class com.babelqueue.DeadLetter
-
Returns the value of the
failedAtrecord component. - fromMessage(PolyglotMessage) - Static method in class com.babelqueue.EnvelopeCodec
-
Build the envelope from a
PolyglotMessageon the default queue. - fromMessage(PolyglotMessage, String) - Static method in class com.babelqueue.EnvelopeCodec
-
Build the envelope from a
PolyglotMessage.
G
- getBabelTraceId() - Method in interface com.babelqueue.HasTraceId
-
The trace id to reuse, or
nullto mint a new one. - getBabelUrn() - Method in interface com.babelqueue.PolyglotMessage
-
The stable URN that identifies this message across languages.
H
- hashCode() - Method in record class com.babelqueue.DeadLetter
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.babelqueue.Envelope
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.babelqueue.Meta
-
Returns a hash code value for this object.
- HasTraceId - Interface in com.babelqueue
-
Optionally implemented alongside
PolyglotMessageto continue an existing distributed trace instead of minting a fresh one.
I
J
- job() - Method in record class com.babelqueue.Envelope
-
Returns the value of the
jobrecord component.
L
- lang() - Method in record class com.babelqueue.DeadLetter
-
Returns the value of the
langrecord component. - lang() - Method in record class com.babelqueue.Meta
-
Returns the value of the
langrecord component.
M
- make(String, Map<String, Object>) - Static method in class com.babelqueue.EnvelopeCodec
-
Build the canonical envelope for a
(urn, data)pair on the default queue. - make(String, Map<String, Object>, String, String) - Static method in class com.babelqueue.EnvelopeCodec
-
Build the canonical envelope for a
(urn, data)pair. - meta() - Method in record class com.babelqueue.Envelope
-
Returns the value of the
metarecord component. - Meta - Record Class in com.babelqueue
-
The immutable per-message metadata block of a
Envelope. - Meta(String, String, String, int, long) - Constructor for record class com.babelqueue.Meta
-
Creates an instance of a
Metarecord class.
O
- originalQueue() - Method in record class com.babelqueue.DeadLetter
-
Returns the value of the
originalQueuerecord component.
P
- PolyglotMessage - Interface in com.babelqueue
-
A message that can be produced as a polyglot envelope.
Q
- queue() - Method in record class com.babelqueue.Meta
-
Returns the value of the
queuerecord component.
R
- reason() - Method in record class com.babelqueue.DeadLetter
-
Returns the value of the
reasonrecord component. - RELEASE - Static variable in class com.babelqueue.UnknownUrnStrategy
-
Requeue for another consumer.
S
- SCHEMA_VERSION - Static variable in class com.babelqueue.EnvelopeCodec
-
The wire envelope schema version this core implements.
- schemaVersion() - Method in record class com.babelqueue.Meta
-
Returns the value of the
schemaVersionrecord component. - SOURCE_LANG - Static variable in class com.babelqueue.EnvelopeCodec
-
The value stamped into
meta.langfor envelopes produced here.
T
- toPayload() - Method in interface com.babelqueue.PolyglotMessage
-
The pure-JSON payload (no class instances).
- toString() - Method in record class com.babelqueue.DeadLetter
-
Returns a string representation of this record class.
- toString() - Method in record class com.babelqueue.Envelope
-
Returns a string representation of this record class.
- toString() - Method in record class com.babelqueue.Meta
-
Returns a string representation of this record class.
- traceId() - Method in record class com.babelqueue.Envelope
-
Returns the value of the
traceIdrecord component.
U
- UnknownUrnException - Exception in com.babelqueue
-
Raised when no handler is mapped for a message URN.
- UnknownUrnException(String) - Constructor for exception com.babelqueue.UnknownUrnException
- UnknownUrnStrategy - Class in com.babelqueue
-
What a consumer does with a message whose URN has no registered handler.
- urn(Envelope) - Static method in class com.babelqueue.EnvelopeCodec
-
The message URN — the canonical
job, with theurnalias resolved byEnvelopeCodec.decode(java.lang.String).
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form