public class TemporaryQueueExecutor extends Object implements QueueExecutor
| Constructor and Description |
|---|
TemporaryQueueExecutor(QueueSession session,
Queue destination)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Message |
sendAndReceive(Message request,
int deliveryMode,
int priority,
long expiration)
Sends and receives a message.
|
public TemporaryQueueExecutor(QueueSession session,
Queue destination)
throws JMSException
session - the session to use to send the messagedestination - the queue to send the message onJMSException - when internally used QueueRequestor can not be
constructed with session and
destinationpublic Message sendAndReceive(Message request,
int deliveryMode,
int priority,
long expiration)
throws JMSException
sendAndReceive in interface QueueExecutorrequest - the message to senddeliveryMode - the delivery mode to usepriority - the priority for this messageexpiration - messages lifetime in msnullJMSException - in case of an exception from the messaging systemCopyright © 1998-2017 Apache Software Foundation. All Rights Reserved.