Uses of Interface
jakarta.jms.MessageConsumer
Packages that use 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
Subinterfaces of MessageConsumer in jakarta.jmsModifier and TypeInterfaceDescriptioninterfaceA client uses aQueueReceiverobject to receive messages that have been delivered to a queue.interfaceA client uses aTopicSubscriberobject to receive messages that have been published to a topic.Methods in jakarta.jms that return MessageConsumerModifier and TypeMethodDescriptionSession.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.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 thenoLocalparameter, 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 thenoLocalparameter, 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.