Class FixedQueueExecutor
java.lang.Object
org.apache.jmeter.protocol.jms.sampler.FixedQueueExecutor
- All Implemented Interfaces:
QueueExecutor
Request/reply executor with a fixed reply queue.
Used by JMS Sampler (Point to Point)
Used by JMS Sampler (Point to Point)
-
Constructor Summary
ConstructorsConstructorDescriptionFixedQueueExecutor(MessageProducer producer, int timeout, boolean useReqMsgIdAsCorrelId) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionMessagesendAndReceive(Message request, int deliveryMode, int priority, long expiration) Sends and receives a message.
-
Constructor Details
-
FixedQueueExecutor
public FixedQueueExecutor(MessageProducer producer, int timeout, boolean useReqMsgIdAsCorrelId) Constructor.- Parameters:
producer- the queue to send the message ontimeout- timeout to use for the return messageuseReqMsgIdAsCorrelId- whether to use the request message id as the correlation id
-
-
Method Details
-
sendAndReceive
public Message sendAndReceive(Message request, int deliveryMode, int priority, long expiration) throws JMSException Sends 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
-