Class TemporaryQueueExecutor
java.lang.Object
org.apache.jmeter.protocol.jms.sampler.TemporaryQueueExecutor
- All Implemented Interfaces:
 QueueExecutor
Request/reply executor with a temporary reply queue. 
Used by JMS Sampler (Point to Point)
Used by JMS Sampler (Point to Point)
- 
Constructor Summary
ConstructorsConstructorDescriptionTemporaryQueueExecutor(javax.jms.QueueSession session, javax.jms.Queue destination, int timeoutMs) Constructor. - 
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the resourcesjavax.jms.MessagesendAndReceive(javax.jms.Message request, int deliveryMode, int priority, long expiration) Sends and receives a message. 
- 
Constructor Details
- 
TemporaryQueueExecutor
public TemporaryQueueExecutor(javax.jms.QueueSession session, javax.jms.Queue destination, int timeoutMs) throws javax.jms.JMSException Constructor.- Parameters:
 session- the session to use to send the messagedestination- the queue to send the message ontimeoutMs- Timeout in millis- Throws:
 javax.jms.JMSException- when internally usedQueueRequestorcan not be constructed withsessionanddestination
 
 - 
 - 
Method Details
- 
sendAndReceive
public javax.jms.Message sendAndReceive(javax.jms.Message request, int deliveryMode, int priority, long expiration) throws javax.jms.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:
 javax.jms.JMSException- in case of an exception from the messaging system
 - 
close
public void close() throws javax.jms.JMSExceptionDescription copied from interface:QueueExecutorClose the resources- Specified by:
 closein interfaceQueueExecutor- Throws:
 javax.jms.JMSException- in case of an exception from the messaging system
 
 -