Uses of Interface
jakarta.jms.MessageConsumer
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 MessageConsumer in jakarta.jms
Modifier and TypeInterfaceDescriptioninterface
A client uses aQueueReceiver
object to receive messages that have been delivered to a queue.interface
A client uses aTopicSubscriber
object to receive messages that have been published to a topic.Modifier and TypeMethodDescriptionSession.createConsumer
(Destination destination) Creates aMessageConsumer
for the specified destination.Session.createConsumer
(Destination destination, String messageSelector) Creates aMessageConsumer
for the specified destination, using a message selector.Session.createConsumer
(Destination destination, String messageSelector, boolean noLocal) Creates aMessageConsumer
for the specified destination, specifying a message selector and thenoLocal
parameter.Session.createDurableConsumer
(Topic topic, String name) Creates an unshared durable subscription on the specified topic (if one does not already exist) and creates a consumer on that durable subscription.Session.createDurableConsumer
(Topic topic, String name, String messageSelector, boolean noLocal) Creates an unshared durable subscription on the specified topic (if one does not already exist), specifying a message selector and thenoLocal
parameter, and creates a consumer on that durable subscription.Session.createSharedConsumer
(Topic topic, String sharedSubscriptionName) Creates a shared non-durable subscription with the specified name on the specified topic (if one does not already exist) and creates a consumer on that subscription.Session.createSharedConsumer
(Topic topic, String sharedSubscriptionName, String messageSelector) Creates a shared non-durable subscription with the specified name on the specified topic (if one does not already exist) specifying a message selector, and creates a consumer on that subscription.Session.createSharedDurableConsumer
(Topic topic, String name) Creates a shared durable subscription on the specified topic (if one does not already exist), specifying a message selector and thenoLocal
parameter, and creates a consumer on that durable subscription.Session.createSharedDurableConsumer
(Topic topic, String name, String messageSelector) Creates a shared durable subscription on the specified topic (if one does not already exist), specifying a message selector, and creates a consumer on that durable subscription.