Uses of Interface
jakarta.jms.Destination
Packages that use Destination
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 Destination in jakarta.jms
Subinterfaces of Destination in jakarta.jmsModifier and TypeInterfaceDescriptioninterfaceAQueueobject encapsulates a provider-specific queue name.interfaceATemporaryQueueobject is a uniqueQueueobject created for the duration of aConnection.interfaceATemporaryTopicobject is a uniqueTopicobject created for the duration of aConnection.interfaceATopicobject encapsulates a provider-specific topic name.Methods in jakarta.jms that return DestinationModifier and TypeMethodDescriptionMessageProducer.getDestination()Gets the destination associated with thisMessageProducer.Message.getJMSDestination()Gets theDestinationobject for this message.JMSProducer.getJMSReplyTo()Returns theJMSReplyToheader value that has been set on thisJMSProducer.Message.getJMSReplyTo()Gets theDestinationobject to which a reply to this message should be sent.Methods in jakarta.jms with parameters of type DestinationModifier and TypeMethodDescriptionConnection.createConnectionConsumer(Destination destination, String messageSelector, ServerSessionPool sessionPool, int maxMessages) Creates a connection consumer for this connection (optional operation) on the specific destination.JMSContext.createConsumer(Destination destination) Creates aJMSConsumerfor the specified destination.JMSContext.createConsumer(Destination destination, String messageSelector) Creates aJMSConsumerfor the specified destination, using a message selector.JMSContext.createConsumer(Destination destination, String messageSelector, boolean noLocal) Creates aJMSConsumerfor the specified destination, specifying a message selector and thenoLocalparameter.Session.createConsumer(Destination destination) Creates aMessageConsumerfor the specified destination.Session.createConsumer(Destination destination, String messageSelector) Creates aMessageConsumerfor the specified destination, using a message selector.Session.createConsumer(Destination destination, String messageSelector, boolean noLocal) Creates aMessageConsumerfor the specified destination, specifying a message selector and thenoLocalparameter.Session.createProducer(Destination destination) Creates aMessageProducerto send messages to the specified destination.JMSProducer.send(Destination destination, byte[] body) Send aBytesMessagewith the specified body to the specified destination, using any send options, message properties and message headers that have been defined on thisJMSProducer.JMSProducer.send(Destination destination, Message message) Sends a message to the specified destination, using any send options, message properties and message headers that have been defined on thisJMSProducer.JMSProducer.send(Destination destination, Serializable body) Send anObjectMessagewith the specified body to the specified destination, using any send options, message properties and message headers that have been defined on thisJMSProducer.JMSProducer.send(Destination destination, String body) Send aTextMessagewith the specified body to the specified destination, using any send options, message properties and message headers that have been defined on thisJMSProducer.JMSProducer.send(Destination destination, Map<String, Object> body) Send aMapMessagewith the specified body to the specified destination, using any send options, message properties and message headers that have been defined on thisJMSProducer.voidMessageProducer.send(Destination destination, Message message) Sends a message to a destination for an unidentified message producer using theMessageProducer's default delivery mode, priority, and time to live.voidMessageProducer.send(Destination destination, Message message, int deliveryMode, int priority, long timeToLive) Sends a message to a destination for an unidentified message producer, specifying delivery mode, priority and time to live.voidMessageProducer.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.voidMessageProducer.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.voidMessage.setJMSDestination(Destination destination) Sets theDestinationobject for this message.JMSProducer.setJMSReplyTo(Destination replyTo) Specifies that messages sent using thisJMSProducerwill have theirJMSReplyToheader value set to the specifiedDestinationobject.voidMessage.setJMSReplyTo(Destination replyTo) Sets theDestinationobject to which a reply to this message should be sent.