public class SolQueueSender extends SolMessageProducer implements QueueSender
Encoder| Modifier and Type | Method and Description |
|---|---|
Queue |
getQueue()
Gets the queue associated with this
QueueSender. |
void |
send(Message message)
Sends a message using the
MessageProducer's
default delivery mode, priority, and time to live. |
void |
send(Message message,
int deliveryMode,
int priority,
long timeToLive)
Sends a message to the destination, specifying delivery mode, priority, and
time to live.
|
void |
send(Queue queue,
Message message)
Sends a message to a queue for an unidentified message producer.
|
void |
send(Queue queue,
Message message,
int deliveryMode,
int priority,
long timeToLive)
Sends a message to a queue for an unidentified message producer,
specifying delivery mode, priority and time to live.
|
cancel, close, deliverToOne, getDeliveryMode, getDestination, getDisableMessageID, getDisableMessageTimestamp, getPriority, getTimeToLive, isDMQEligible, isElidingEligible, isReplyMessage, isXMLPayload, send, send, setDeliveryMode, setDisableMessageID, setDisableMessageTimestamp, setPriority, setProducerEventListener, setTimeToLive, useDirectMessagingequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getDeliveryMode, getDestination, getDisableMessageID, getDisableMessageTimestamp, getPriority, getTimeToLive, send, send, setDeliveryMode, setDisableMessageID, setDisableMessageTimestamp, setPriority, setTimeToLivepublic Queue getQueue() throws JMSException
QueueSenderQueueSender.getQueue in interface QueueSenderJMSException - if the JMS provider fails to get the queue for
this QueueSender
due to some internal error.public void send(Message message) throws JMSException
MessageProducerMessageProducer's
default delivery mode, priority, and time to live.
When sending non-persistent messages, notifications of quota, permission, or endpoint problems will occur by sending an exception asynchronously through the Connection's ExceptionListener. In this case the send API will return without error but the message will not have been accepted. When sending persistent messages, the send API will always throw an exception when messages are not accepted.
send in interface MessageProducersend in interface QueueSendersend in class SolMessageProducermessage - the message to sendJMSException - if the JMS provider fails to send the message
due to some internal error.MessageFormatException - if an invalid message is specified.InvalidDestinationException - if a client uses
this method with a MessageProducer with
an invalid destination.Session.createProducer(javax.jms.Destination),
MessageProducerpublic void send(Message message, int deliveryMode, int priority, long timeToLive) throws JMSException
MessageProducerWhen sending non-persistent messages, notifications of quota, permission, or endpoint problems will occur by sending an exception asynchronously through the Connection's ExceptionListener. In this case the send API will return without error but the message will not have been accepted. When sending persistent messages, the send API will always throw an exception when messages are not accepted.
send in interface MessageProducersend in interface QueueSendersend in class SolMessageProducermessage - the message to senddeliveryMode - the delivery mode to usepriority - the priority for this messagetimeToLive - the message's lifetime (in milliseconds)
Supported since 4.6.1 SolOS-TR.JMSException - if the JMS provider fails to send the message
due to some internal error.MessageFormatException - if an invalid message is specified.InvalidDestinationException - if a client uses
this method with a MessageProducer with
an invalid destination.Session.createProducer(javax.jms.Destination)public void send(Queue queue, Message message) throws JMSException
QueueSenderQueueSender's default delivery mode, priority,
and time to live.
Typically, a message producer is assigned a queue at creation time; however, the JMS API also supports unidentified message producers, which require that the queue be supplied every time a message is sent.
When sending non-persistent messages, notifications of quota, permission, or endpoint problems will occur by sending an exception asynchronously through the Connection's ExceptionListener. In this case the send API will return without error but the message will not have been accepted. When sending persistent messages, the send API will always throw an exception when messages are not accepted.
send in interface QueueSenderqueue - the queue to send this message tomessage - the message to sendJMSException - if the JMS provider fails to send the message
due to some internal error.MessageFormatException - if an invalid message is specified.InvalidDestinationException - if a client uses
this method with an invalid queue.MessageProducer.getDeliveryMode(),
MessageProducer.getTimeToLive(),
MessageProducer.getPriority()public void send(Queue queue, Message message, int deliveryMode, int priority, long timeToLive) throws JMSException
QueueSenderTypically, a message producer is assigned a queue at creation time; however, the JMS API also supports unidentified message producers, which require that the queue be supplied every time a message is sent.
When sending non-persistent messages, notifications of quota, permission, or endpoint problems will occur by sending an exception asynchronously through the Connection's ExceptionListener. In this case the send API will return without error but the message will not have been accepted. When sending persistent messages, the send API will always throw an exception when messages are not accepted.
send in interface QueueSenderqueue - the queue to send this message tomessage - the message to senddeliveryMode - the delivery mode to usepriority - the priority for this messagetimeToLive - the message's lifetime (in milliseconds)
Supported since 4.6.1 SolOS-TR.JMSException - if the JMS provider fails to send the message
due to some internal error.MessageFormatException - if an invalid message is specified.InvalidDestinationException - if a client uses
this method with an invalid queue.Copyright 2004-2021 Solace Corporation. All rights reserved.