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
JmsMessageFactorycreateMessage in interface JmsMessageFactoryjavax.jms.JMSException - if the provider cannot create the message for some reason.public JmsTextMessage createTextMessage() throws javax.jms.JMSException
JmsMessageFactorycreateTextMessage in interface JmsMessageFactoryjavax.jms.JMSException - if the provider cannot create the message for some reason.public JmsTextMessage createTextMessage(String payload) throws javax.jms.JMSException
JmsMessageFactorycreateTextMessage in interface JmsMessageFactorypayload - 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
JmsMessageFactorycreateBytesMessage in interface JmsMessageFactoryjavax.jms.JMSException - if the provider cannot create the message for some reason.public JmsMapMessage createMapMessage() throws javax.jms.JMSException
JmsMessageFactorycreateMapMessage in interface JmsMessageFactoryjavax.jms.JMSException - if the provider cannot create the message for some reason.public JmsStreamMessage createStreamMessage() throws javax.jms.JMSException
JmsMessageFactorycreateStreamMessage in interface JmsMessageFactoryjavax.jms.JMSException - if the provider cannot create the message for some reason.public JmsObjectMessage createObjectMessage() throws javax.jms.JMSException
JmsMessageFactorycreateObjectMessage in interface JmsMessageFactoryjavax.jms.JMSException - if the provider cannot create the message for some reason.public JmsObjectMessage createObjectMessage(Serializable payload) throws javax.jms.JMSException
JmsMessageFactorycreateObjectMessage in interface JmsMessageFactorypayload - 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–2019 The Apache Software Foundation. All rights reserved.