Apache JMeter

org.apache.jmeter.protocol.jms.sampler
Class TemporaryQueueExecutor

java.lang.Object
  extended by org.apache.jmeter.protocol.jms.sampler.TemporaryQueueExecutor
All Implemented Interfaces:
QueueExecutor

public class TemporaryQueueExecutor
extends java.lang.Object
implements QueueExecutor

Request/reply executor with a temporary reply queue.
Used by JMS Sampler (Point to Point) Created on: October 28, 2004

Version:
$Revision: 678779 $

Constructor Summary
TemporaryQueueExecutor(QueueSession session, Queue destination)
          Constructor.
 
Method Summary
 Message sendAndReceive(Message request)
          Sends and receives a message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemporaryQueueExecutor

public TemporaryQueueExecutor(QueueSession session,
                              Queue destination)
                       throws JMSException
Constructor.

Parameters:
session - the session to use to send the message
destination - the queue to send the message on
Throws:
JMSException
Method Detail

sendAndReceive

public Message sendAndReceive(Message request)
                       throws JMSException
Description copied from interface: QueueExecutor
Sends and receives a message.

Specified by:
sendAndReceive in interface QueueExecutor
Parameters:
request - the message to send
Returns:
the received message or null
Throws:
JMSException - in case of an exception from the messaging system

Apache JMeter

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.