Class JmsTextMessage
- java.lang.Object
-
- io.helidon.messaging.connectors.jms.JmsTextMessage
-
- All Implemented Interfaces:
JmsMessage<String>,Message<String>
public class JmsTextMessage extends Object
A JMS Text message representation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.helidon.messaging.connectors.jms.JmsMessage
JmsMessage.CustomMapper<PAYLOAD>, JmsMessage.OutgoingJmsMessageBuilder<PAYLOAD>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<Void>ack()javax.jms.ConnectiongetJmsConnection()Get client's connection to its JMS provider.javax.jms.ConnectionFactorygetJmsConnectionFactory()Get JMS connection factory.javax.jms.TextMessagegetJmsMessage()Original JMS message received.javax.jms.SessiongetJmsSession()Metadata about the JMS session.StringgetPayload()<P> PgetProperty(String name)Get JMS property by name.Set<String>getPropertyNames()Return set of all JMS property names.booleanhasProperty(String name)Check if JMS property exists.booleanisAck()Check if message has been acknowledged yet.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.helidon.messaging.connectors.jms.JmsMessage
getCorrelationId, getReplyTo, getType
-
-
-
-
Method Detail
-
getJmsMessage
public javax.jms.TextMessage getJmsMessage()
Description copied from interface:JmsMessageOriginal JMS message received.- Returns:
- original JMS message received
-
getPayload
public String getPayload()
-
getProperty
public <P> P getProperty(String name)
Description copied from interface:JmsMessageGet JMS property by name.- Specified by:
getPropertyin interfaceJmsMessage<T>- Type Parameters:
P- expected type of the property, has to be Boolean, Byte, Short, Integer, Long, Float, Double or String- Parameters:
name- the name of the JMS property- Returns:
- property value with the specified name or null
-
hasProperty
public boolean hasProperty(String name)
Description copied from interface:JmsMessageCheck if JMS property exists.- Specified by:
hasPropertyin interfaceJmsMessage<T>- Parameters:
name- the name of the JMS property- Returns:
- true if property exists
-
getPropertyNames
public Set<String> getPropertyNames()
Description copied from interface:JmsMessageReturn set of all JMS property names.- Specified by:
getPropertyNamesin interfaceJmsMessage<T>- Returns:
- JMS property names
-
getJmsSession
public javax.jms.Session getJmsSession()
Description copied from interface:JmsMessageMetadata about the JMS session.- Specified by:
getJmsSessionin interfaceJmsMessage<T>- Returns:
- JMS session
-
getJmsConnection
public javax.jms.Connection getJmsConnection()
Description copied from interface:JmsMessageGet client's connection to its JMS provider.- Specified by:
getJmsConnectionin interfaceJmsMessage<T>- Returns:
- JMS connection
-
getJmsConnectionFactory
public javax.jms.ConnectionFactory getJmsConnectionFactory()
Description copied from interface:JmsMessageGet JMS connection factory.- Specified by:
getJmsConnectionFactoryin interfaceJmsMessage<T>- Returns:
- JMS connection factory
-
isAck
public boolean isAck()
Description copied from interface:JmsMessageCheck if message has been acknowledged yet.- Specified by:
isAckin interfaceJmsMessage<T>- Returns:
- true if message has been acknowledged
-
ack
public CompletionStage<Void> ack()
-
-