org.apache.jmeter.protocol.jms.sampler

Class FixedQueueExecutor

Implemented Interfaces:
QueueExecutor

public class FixedQueueExecutor
extends Object
implements QueueExecutor

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

Constructor Summary

FixedQueueExecutor(QueueSender producer, int timeout)
Constructor.
FixedQueueExecutor(QueueSender producer, int timeout, boolean useReqMsgIdAsCorrelId)
Constructor.

Method Summary

Message
sendAndReceive(Message request)

Constructor Details

FixedQueueExecutor

public FixedQueueExecutor(QueueSender producer,
                          int timeout)
Constructor.
Parameters:
producer - the queue to send the message on
timeout - timeout to use for the return message

FixedQueueExecutor

public FixedQueueExecutor(QueueSender producer,
                          int timeout,
                          boolean useReqMsgIdAsCorrelId)
Constructor.
Parameters:
producer - the queue to send the message on
timeout - timeout to use for the return message
useReqMsgIdAsCorrelId - whether to use the request message id as the correlation id

Method Details

sendAndReceive

public Message sendAndReceive(Message request)
            throws JMSException
Specified by:
sendAndReceive in interface QueueExecutor

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