Class TemporaryQueueExecutor
- java.lang.Object
-
- org.apache.jmeter.protocol.jms.sampler.TemporaryQueueExecutor
-
- All Implemented Interfaces:
QueueExecutor
public class TemporaryQueueExecutor extends Object implements QueueExecutor
Request/reply executor with a temporary reply queue.
Used by JMS Sampler (Point to Point)
-
-
Constructor Summary
Constructors Constructor Description TemporaryQueueExecutor(QueueSession session, Queue destination)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessagesendAndReceive(Message request, int deliveryMode, int priority, long expiration)Sends and receives a message.
-
-
-
Constructor Detail
-
TemporaryQueueExecutor
public TemporaryQueueExecutor(QueueSession session, Queue destination) throws JMSExceptionConstructor.- Parameters:
session- the session to use to send the messagedestination- the queue to send the message on- Throws:
JMSException- when internally usedQueueRequestorcan not be constructed withsessionanddestination
-
-
Method Detail
-
sendAndReceive
public Message sendAndReceive(Message request, int deliveryMode, int priority, long expiration) throws JMSExceptionSends and receives a message.- Specified by:
sendAndReceivein interfaceQueueExecutor- Parameters:
request- the message to senddeliveryMode- the delivery mode to usepriority- the priority for this messageexpiration- messages lifetime in ms- Returns:
- the received message or
null - Throws:
JMSException
-
-