Package com.codename1.backend.messaging
package com.codename1.backend.messaging
Messaging: sending through MessageTemplate
and receiving in @MessageListener methods, over a queue in the
application's own database, Redis Streams, RabbitMQ, Kafka, Amazon SQS or
Google Cloud Pub/Sub -- whichever Messaging is configured with.
Listeners are found and wired at build time: no reflection, no proxies, and a protocol the configuration does not name is not in the application.
-
ClassDescriptionOne message: a destination, an optional key, headers, and the payload as bytes.What a subscription calls for each message.Sends messages through the server's transport: what an application injects to publish, as it would Spring's
KafkaTemplateorRabbitTemplate.A broker connection: what sends messages and runs subscriptions.Opens theMessageTransporta configuration names, and finds the one of the calling thread's server.Opens a broker transport for a URL of its scheme.A transport whose consumers ask the broker for messages in a loop: the database, Redis Streams, Kafka.One message as polled, with whatever the broker needs to acknowledge it.How often a failed message is delivered again, and how long apart.A running subscription.