public class Jms11Support extends Jms20Support
Jms11Support is a template class to provide an abstraction to to the JMS 1.1 API specification.| Constructor and Description |
|---|
Jms11Support() |
Jms11Support(LookupJndiDestination lookupJndiDestination,
Function<String,Optional<javax.jms.Destination>> jndiObjectSupplier) |
| Modifier and Type | Method and Description |
|---|---|
javax.jms.MessageConsumer |
createConsumer(javax.jms.Session session,
javax.jms.Destination destination,
String messageSelector,
ConsumerType type)
Creates a new JMS
MessageConsumer using the given Session |
JmsSpecification |
getSpecification() |
void |
send(javax.jms.MessageProducer producer,
javax.jms.Message message,
boolean persistent,
int priority,
long ttl,
boolean topic,
javax.jms.CompletionListener completionListener)
Sends the given
Message to the indicated Destination using the parametrized configurations. |
createConnection, createConnection, createDestination, createDestinationFromJndi, createProducer, createSession, createTemporaryDestination, createXaConnection, createXaConnection, createXaSession, getJndiDestination, getLookupJndiDestination, sendpublic Jms11Support()
public Jms11Support(LookupJndiDestination lookupJndiDestination, Function<String,Optional<javax.jms.Destination>> jndiObjectSupplier)
public JmsSpecification getSpecification()
getSpecification in interface JmsSupportgetSpecification in class Jms20Supportthis implementation JmsSpecificationpublic javax.jms.MessageConsumer createConsumer(javax.jms.Session session,
javax.jms.Destination destination,
String messageSelector,
ConsumerType type)
throws javax.jms.JMSException
MessageConsumer using the given SessioncreateConsumer in interface JmsSupportcreateConsumer in class Jms20Supportsession - the Session used to create the MessageConsumerdestination - the Destination from which Messages will be consumedmessageSelector - a JMS selector string for filtering incoming Messages. Empty or null implies no
filteringtype - the ConsumerType to use based on the Destination typeMessageConsumer for the given Destinationjavax.jms.JMSException - if an error occurs while creating the consumerpublic void send(javax.jms.MessageProducer producer,
javax.jms.Message message,
boolean persistent,
int priority,
long ttl,
boolean topic,
javax.jms.CompletionListener completionListener)
throws javax.jms.JMSException
Message to the indicated Destination using the parametrized configurations. Because of async
publishing didn't exist on JMS 1.1 or prior. This method will be blocking and sync.send in interface JmsSupportsend in class Jms20Supportproducer - the MessageProducer to use for sending the messagemessage - the Message to sendpersistent - true if DeliveryMode.PERSISTENT should be usedpriority - the Message.getJMSPriority() to be set on sendttl - the message's lifetime (in milliseconds)topic - used by JmsSpecification.JMS_1_0_2b to decide whether to use the MessageProducer as
TopicPublisher or a QueueSenderjavax.jms.JMSException - if an error occurs during messsage sendingCopyright © 2022. All rights reserved.