public class AmqpJmsMessageFactory extends Object implements JmsMessageFactory
Constructor and Description |
---|
AmqpJmsMessageFactory(AmqpConnection connection) |
Modifier and Type | Method and Description |
---|---|
JmsBytesMessage |
createBytesMessage()
Creates an instance of a basic JmsBytesMessage object.
|
JmsMapMessage |
createMapMessage()
Creates an instance of a basic JmsMapMessage object.
|
JmsMessage |
createMessage()
Creates an instance of a basic JmsMessage object.
|
JmsObjectMessage |
createObjectMessage()
Creates an instance of a basic JmsObjectMessage object.
|
JmsObjectMessage |
createObjectMessage(Serializable payload)
Creates an instance of a basic JmsObjectMessage object.
|
JmsStreamMessage |
createStreamMessage()
Creates an instance of a basic JmsStreamMessage object.
|
JmsTextMessage |
createTextMessage()
Creates an instance of a basic JmsTextMessage object.
|
JmsTextMessage |
createTextMessage(String payload)
Creates an instance of a basic JmsTextMessage object.
|
AmqpConnection |
getAmqpConnection() |
public AmqpJmsMessageFactory(AmqpConnection connection)
public AmqpConnection getAmqpConnection()
public JmsMessage createMessage() throws javax.jms.JMSException
JmsMessageFactory
createMessage
in interface JmsMessageFactory
javax.jms.JMSException
- if the provider cannot create the message for some reason.public JmsTextMessage createTextMessage() throws javax.jms.JMSException
JmsMessageFactory
createTextMessage
in interface JmsMessageFactory
javax.jms.JMSException
- if the provider cannot create the message for some reason.public JmsTextMessage createTextMessage(String payload) throws javax.jms.JMSException
JmsMessageFactory
createTextMessage
in interface JmsMessageFactory
payload
- The value to initially assign to the Message body, or null if empty to start.javax.jms.JMSException
- if the provider cannot create the message for some reason.public JmsBytesMessage createBytesMessage() throws javax.jms.JMSException
JmsMessageFactory
createBytesMessage
in interface JmsMessageFactory
javax.jms.JMSException
- if the provider cannot create the message for some reason.public JmsMapMessage createMapMessage() throws javax.jms.JMSException
JmsMessageFactory
createMapMessage
in interface JmsMessageFactory
javax.jms.JMSException
- if the provider cannot create the message for some reason.public JmsStreamMessage createStreamMessage() throws javax.jms.JMSException
JmsMessageFactory
createStreamMessage
in interface JmsMessageFactory
javax.jms.JMSException
- if the provider cannot create the message for some reason.public JmsObjectMessage createObjectMessage() throws javax.jms.JMSException
JmsMessageFactory
createObjectMessage
in interface JmsMessageFactory
javax.jms.JMSException
- if the provider cannot create the message for some reason.public JmsObjectMessage createObjectMessage(Serializable payload) throws javax.jms.JMSException
JmsMessageFactory
createObjectMessage
in interface JmsMessageFactory
payload
- The value to initially assign to the Message body, or null if empty to start.javax.jms.JMSException
- if the provider cannot create the message for some reason.Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.