org.apache.qpid.client.message
Class TestMessageFactory
java.lang.Object
org.apache.qpid.client.message.TestMessageFactory
public class TestMessageFactory
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestMessageFactory
public TestMessageFactory()
newTextMessage
public static TextMessage newTextMessage(Session session,
int size)
throws JMSException
- Throws:
JMSException
newJMSTextMessage
public static TextMessage newJMSTextMessage(Session session,
int size,
String encoding)
throws JMSException
- Throws:
JMSException
newBytesMessage
public static BytesMessage newBytesMessage(Session session,
int size)
throws JMSException
- Throws:
JMSException
newStreamMessage
public static StreamMessage newStreamMessage(Session session,
int size)
throws JMSException
- Throws:
JMSException
newObjectMessage
public static ObjectMessage newObjectMessage(Session session,
int size)
throws JMSException
- Throws:
JMSException
newObjectMessage
public static ObjectMessage newObjectMessage(Session session,
Destination replyDestination,
int size,
boolean persistent)
throws JMSException
- Creates an ObjectMessage with given size and sets the JMS properties (JMSReplyTo and DeliveryMode)
- Parameters:
session
- replyDestination
- size
- persistent
-
- Returns:
- the new ObjectMessage
- Throws:
JMSException
createMessagePayload
public static String createMessagePayload(int size)
Licensed to the Apache Software Foundation