Uses of Record Class
com.babelqueue.Envelope
-
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.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 StringThe message URN — the canonicaljob, with theurnalias resolved byEnvelopeCodec.decode(java.lang.String).