QueueExecutorpublic class TemporaryQueueExecutor extends Object implements QueueExecutor
| Constructor | Description |
|---|---|
TemporaryQueueExecutor(QueueSession session,
Queue destination) |
Constructor.
|
| Modifier and Type | Method | 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 msnullJMSExceptionCopyright © 1998-2018 Apache Software Foundation. All Rights Reserved.