Index

A B C D E F G H I J L M O P Q R S T U 
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, missing data or a blank trace_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 attempts and 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 DeadLetter block attached, recording why and where it failed.
attempts() - Method in record class com.babelqueue.DeadLetter
Returns the value of the attempts record component.
attempts() - Method in record class com.babelqueue.Envelope
Returns the value of the attempts record 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 createdAt record component.

D

data() - Method in record class com.babelqueue.Envelope
Returns the value of the data record 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 deadLetter record component.
DeadLetter - Record Class in com.babelqueue
The additive block appended to an Envelope when 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 DeadLetter record class.
DeadLetters - Class in com.babelqueue
Builds the additive dead_letter block for an Envelope.
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 Envelope record 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 error record component.
exception() - Method in record class com.babelqueue.DeadLetter
Returns the value of the exception record 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 failedAt record component.
fromMessage(PolyglotMessage) - Static method in class com.babelqueue.EnvelopeCodec
Build the envelope from a PolyglotMessage on 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 null to 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 PolyglotMessage to continue an existing distributed trace instead of minting a fresh one.

I

id() - Method in record class com.babelqueue.Meta
Returns the value of the id record component.

J

job() - Method in record class com.babelqueue.Envelope
Returns the value of the job record component.

L

lang() - Method in record class com.babelqueue.DeadLetter
Returns the value of the lang record component.
lang() - Method in record class com.babelqueue.Meta
Returns the value of the lang record 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 meta record 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 Meta record class.

O

originalQueue() - Method in record class com.babelqueue.DeadLetter
Returns the value of the originalQueue record 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 queue record component.

R

reason() - Method in record class com.babelqueue.DeadLetter
Returns the value of the reason record 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 schemaVersion record component.
SOURCE_LANG - Static variable in class com.babelqueue.EnvelopeCodec
The value stamped into meta.lang for 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 traceId record 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 the urn alias resolved by EnvelopeCodec.decode(java.lang.String).
A B C D E F G H I J L M O P Q R S T U 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form