public class QueueSenderImpl extends MessageProducerImpl implements QueueSender
_queue, _session, DEFAULT_TIME_TO_LIVE
Constructor and Description |
---|
QueueSenderImpl(JmsSession session,
AbstractQueue queue) |
Modifier and Type | Method and Description |
---|---|
Queue |
getQueue()
Returns the queue
|
void |
send(Queue queue,
Message message)
Sends a message to the queue
|
void |
send(Queue queue,
Message message,
int deliveryMode,
int priority,
long timeToLive)
Sends a message to the queue
|
calculateExpiration, close, getDeliveryMode, getDestination, getDisableMessageID, getDisableMessageTimestamp, getPriority, getTimeToLive, send, send, send, send, setDeliveryMode, setDisableMessageID, setDisableMessageTimestamp, setPriority, setTimeToLive, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
send, send
close, getDeliveryMode, getDestination, getDisableMessageID, getDisableMessageTimestamp, getPriority, getTimeToLive, send, send, setDeliveryMode, setDisableMessageID, setDisableMessageTimestamp, setPriority, setTimeToLive
public QueueSenderImpl(JmsSession session, AbstractQueue queue)
public Queue getQueue() throws JMSException
getQueue
in interface QueueSender
JMSException
public void send(Queue queue, Message message) throws JMSException
send
in interface QueueSender
queue
- the queue the message should be send tomessage
- the message to sendJMSException
public void send(Queue queue, Message message, int deliveryMode, int priority, long timeToLive) throws JMSException
send
in interface QueueSender
queue
- the queue the message should be send tomessage
- the message to senddeliveryMode
- the delivery modepriority
- the prioritytimeToLive
- how long the message should liveJMSException