Package org.acemq.amqp.core
@NullMarked
package org.acemq.amqp.core
The protocol-agnostic engine.
Everything with an opinion lives here: publishing with confirms, the consumer runtime, envelope mapping, codecs and, as they arrive, retries and topology planning. The core talks only to the transport SPI, which is why the same engine serves AMQP 0-9-1 and AMQP 1.0.
-
ClassDescriptionThe entry point: one connection to one broker, and the publishers and consumers built on it.The two formats that need no library, announced to the registry.Announces
BytesCodecasbytes.AnnouncesStringCodecastext.Passes bytes through untouched.Finds the codecs on the classpath and names the ones used by default.Writes in one format and reads several.Several consumers on one queue, resized while the application runs.Says how many consumers to run and how much each may hold, and then starts them.How a consumer should behave.Publishes to one destination, waiting for the broker to confirm every message.An itinerary a message carries with it, naming every stop rather than every step.One stop on an itinerary.A running consumer.Creates the Micrometer sink, in a class of its own.Creates the OpenTelemetry sink, in a class of its own.OrderedQueue<T>Messages that share a key are handled in the order they were sent.What happens when a handler fails.Says how a stream of messages is partitioned, and then declares it.Pipeline<T>A chain of steps, each its own queue.PipelineBuilder<T,C> Declares the steps of a pipeline, in order, threading the types along the chain.How a message should be published.Moves messages out of a dead-letter queue or parking lot and back to the queue they failed in.Asks a question and waits for the answer.No reply arrived in time.The other end ofRequester: reads a request, computes an answer, sends it back.The responder answered, and the answer was a failure.A running read of a stream.How a stream should be read.What to do when a handler throws.StreamReader<T>Says where to start reading a stream, and then starts.Reads and writes UTF-8 text.Builds the telemetry sink for a connection.Works out what aTopologywould change before changing it.