public class CamelQueueSender extends CamelMessageProducer implements QueueSender
QueueSender which sends message exchanges to a Camel
EndpointproducerdefaultDeliveryMode, defaultPriority, defaultTimeToLive, disableMessageID, disableMessageTimestamp, sendTimeout, session| Constructor and Description |
|---|
CamelQueueSender(CamelQueue destination,
org.apache.camel.Endpoint endpoint,
ActiveMQSession session) |
| Modifier and Type | Method and Description |
|---|---|
Queue |
getQueue()
Gets the queue associated with this
QueueSender. |
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.
|
checkClosed, close, getDestination, getEndpoint, sendgetDeliveryMode, getDisableMessageID, getDisableMessageTimestamp, getPriority, getSendTimeout, getTimeToLive, send, send, send, setDeliveryMode, setDisableMessageID, setDisableMessageTimestamp, setPriority, setSendTimeout, setTimeToLiveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsend, sendclose, getDeliveryMode, getDestination, getDisableMessageID, getDisableMessageTimestamp, getPriority, getTimeToLive, send, send, setDeliveryMode, setDisableMessageID, setDisableMessageTimestamp, setPriority, setTimeToLivepublic CamelQueueSender(CamelQueue destination, org.apache.camel.Endpoint endpoint, ActiveMQSession session) throws JMSException
JMSExceptionpublic Queue getQueue() throws JMSException
QueueSender.getQueue in interface QueueSenderJMSException - if the JMS provider fails to get the queue for this
QueueSender due to some internal error.public void send(Queue queue, Message message) throws JMSException
QueueSender'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.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.MessageProducer.getDeliveryMode(),
MessageProducer.getTimeToLive(),
MessageProducer.getPriority()public void send(Queue queue, Message message, int deliveryMode, int priority, long timeToLive) throws JMSException
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)JMSException - if the JMS provider fails to send the message due to
some internal error.Copyright © 2005–2016 FuseSource, Corp.. All rights reserved.