Uses of Interface
jakarta.jms.CompletionListener
Package
Description
The Jakarta Messaging API provides a common way for Java programs to create, send, receive and read an enterprise messaging system's messages.
-
Uses of CompletionListener in jakarta.jms
Modifier and TypeMethodDescriptionJMSProducer.getAsync()
If subsequent calls tosend
on thisJMSProducer
object have been configured to be asynchronous then this method returns theCompletionListener
that has previously been configured.Modifier and TypeMethodDescriptionvoid
MessageProducer.send
(Destination destination, Message message, int deliveryMode, int priority, long timeToLive, CompletionListener completionListener) Sends a message to a destination for an unidentified message producer, specifying delivery mode, priority and time to live, performing part of the work involved in sending the message in a separate thread and notifying the specified CompletionListener when the operation has completed.void
MessageProducer.send
(Destination destination, Message message, CompletionListener completionListener) Sends a message to a destination for an unidentified message producer, using theMessageProducer
's default delivery mode, priority, and time to live, performing part of the work involved in sending the message in a separate thread and notifying the specified CompletionListener when the operation has completed.void
MessageProducer.send
(Message message, int deliveryMode, int priority, long timeToLive, CompletionListener completionListener) Sends a message, specifying delivery mode, priority and time to live, performing part of the work involved in sending the message in a separate thread and notifying the specified CompletionListener when the operation has completed.void
MessageProducer.send
(Message message, CompletionListener completionListener) Sends a message using theMessageProducer
's default delivery mode, priority, and time to live, performing part of the work involved in sending the message in a separate thread and notifying the specified CompletionListener when the operation has completed.JMSProducer.setAsync
(CompletionListener completionListener) Specifies whether subsequent calls tosend
on thisJMSProducer
object should be synchronous or asynchronous.