public class PerformanceService extends Object
| Constructor and Description |
|---|
PerformanceService() |
| Modifier and Type | Method and Description |
|---|---|
PerformanceResult |
runSample(javax.jms.Connection connection,
int numMessages,
int messageSize,
int numThreads,
long messageSendDelayMs)
Run a sample of messages, testing for performance.
|
public PerformanceResult runSample(javax.jms.Connection connection, int numMessages, int messageSize, int numThreads, long messageSendDelayMs) throws javax.jms.JMSException, InterruptedException
Run a sample of messages, testing for performance.
Total # of messages = numMessages X numThreadsconnection - Connection to use for creating temporary queues, and sending/receiving messagesnumMessages - Number of messages to send on each threadmessageSize - Size of message payload (max 48k)numThreads - Number of threads to create for sending and receivingmessageSendDelayMs - Delay time between sending each message. Added to total send time. Recommended 0.javax.jms.JMSException - A JMS exception was encountered during the runInterruptedException - One or more threads was interrupted during the runCopyright © 2014. All Rights Reserved.