Class AmqpJmsMessageFactory
java.lang.Object
org.apache.qpid.jms.provider.amqp.message.AmqpJmsMessageFactory
- All Implemented Interfaces:
JmsMessageFactory
AMQP Message Factory instance used to create new JmsMessage types that wrap an
Proton AMQP Message. This class is used by the JMS layer to create its JMS
Message instances, the messages returned here should be created in a proper
initially empty state for the client to populate.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates an instance of a basic JmsBytesMessage object.Creates an instance of a basic JmsMapMessage object.Creates an instance of a basic JmsMessage object.Creates an instance of a basic JmsObjectMessage object.createObjectMessage(Serializable payload) Creates an instance of a basic JmsObjectMessage object.Creates an instance of a basic JmsStreamMessage object.Creates an instance of a basic JmsTextMessage object.createTextMessage(String payload) Creates an instance of a basic JmsTextMessage object.
-
Constructor Details
-
AmqpJmsMessageFactory
-
-
Method Details
-
getAmqpConnection
-
createMessage
Description copied from interface:JmsMessageFactoryCreates an instance of a basic JmsMessage object. The provider may either create the Message with the default generic internal message implementation or create a Provider specific instance that optimizes the access and marshaling of the message.- Specified by:
createMessagein interfaceJmsMessageFactory- Returns:
- a newly created and initialized JmsMessage instance.
- Throws:
jakarta.jms.JMSException- if the provider cannot create the message for some reason.
-
createTextMessage
Description copied from interface:JmsMessageFactoryCreates an instance of a basic JmsTextMessage object. The provider may either create the Message with the default generic internal message implementation or create a Provider specific instance that optimizes the access and marshaling of the message.- Specified by:
createTextMessagein interfaceJmsMessageFactory- Returns:
- a newly created and initialized JmsTextMessage instance.
- Throws:
jakarta.jms.JMSException- if the provider cannot create the message for some reason.
-
createTextMessage
Description copied from interface:JmsMessageFactoryCreates an instance of a basic JmsTextMessage object. The provider may either create the Message with the default generic internal message implementation or create a Provider specific instance that optimizes the access and marshaling of the message.- Specified by:
createTextMessagein interfaceJmsMessageFactory- Parameters:
payload- The value to initially assign to the Message body, or null if empty to start.- Returns:
- a newly created and initialized JmsTextMessage instance.
- Throws:
jakarta.jms.JMSException- if the provider cannot create the message for some reason.
-
createBytesMessage
Description copied from interface:JmsMessageFactoryCreates an instance of a basic JmsBytesMessage object. The provider may either create the Message with the default generic internal message implementation or create a Provider specific instance that optimizes the access and marshaling of the message.- Specified by:
createBytesMessagein interfaceJmsMessageFactory- Returns:
- a newly created and initialized JmsTextMessage instance.
- Throws:
jakarta.jms.JMSException- if the provider cannot create the message for some reason.
-
createMapMessage
Description copied from interface:JmsMessageFactoryCreates an instance of a basic JmsMapMessage object. The provider may either create the Message with the default generic internal message implementation or create a Provider specific instance that optimizes the access and marshaling of the message.- Specified by:
createMapMessagein interfaceJmsMessageFactory- Returns:
- a newly created and initialized JmsTextMessage instance.
- Throws:
jakarta.jms.JMSException- if the provider cannot create the message for some reason.
-
createStreamMessage
Description copied from interface:JmsMessageFactoryCreates an instance of a basic JmsStreamMessage object. The provider may either create the Message with the default generic internal message implementation or create a Provider specific instance that optimizes the access and marshaling of the message.- Specified by:
createStreamMessagein interfaceJmsMessageFactory- Returns:
- a newly created and initialized JmsTextMessage instance.
- Throws:
jakarta.jms.JMSException- if the provider cannot create the message for some reason.
-
createObjectMessage
Description copied from interface:JmsMessageFactoryCreates an instance of a basic JmsObjectMessage object. The provider may either create the Message with the default generic internal message implementation or create a Provider specific instance that optimizes the access and marshaling of the message.- Specified by:
createObjectMessagein interfaceJmsMessageFactory- Returns:
- a newly created and initialized JmsObjectMessage instance.
- Throws:
jakarta.jms.JMSException- if the provider cannot create the message for some reason.
-
createObjectMessage
Description copied from interface:JmsMessageFactoryCreates an instance of a basic JmsObjectMessage object. The provider may either create the Message with the default generic internal message implementation or create a Provider specific instance that optimizes the access and marshaling of the message.- Specified by:
createObjectMessagein interfaceJmsMessageFactory- Parameters:
payload- The value to initially assign to the Message body, or null if empty to start.- Returns:
- a newly created and initialized JmsObjectMessage instance.
- Throws:
jakarta.jms.JMSException- if the provider cannot create the message for some reason.
-