Class Message
java.lang.Object
com.swiftmq.impl.streams.comp.message.Message
- Direct Known Subclasses:
BytesMessage, MapMessage, ObjectMessage, StreamMessage, TextMessage
Facade to wrap a javax.jms.Message.
- Author:
- IIT Software GmbH, Muenster/Germany, (c) 2016, All Rights Reserved
-
Method Summary
Modifier and TypeMethodDescriptionClears the message body.copyProperties(Message source) Internal use only.Returns the JMS correlation ID.Sets the JMS correlation ID.Returns the Name of the JMSDestination.longReturns the JMS expiration.expiration(long exp) Sets the JMS expirationcom.swiftmq.jms.MessageImplgetImpl()Internal use only.booleanReturns true if this Message is non-persistent.booleanInternal use.booleanReturns true if this Message is persistent.booleanisSelected(com.swiftmq.ms.MessageSelector selector) Internal use only.Returns the JMS message ID.Sets the JMS message ID.Marks this Message as non-persistent.onMessageEnabled(boolean onMessageEnabled) Can be set to false in an Input callback to disable calling the onMessage Callback with this Message.Marks this Message as persistent.intpriority()Returns the JMS prioritypriority(int prio) Sets the JMS priority.Returns a PropertySet that contains all Message Properties of this MessageReturns the Message property with that name.javax.jms.DestinationreplyTo()Returns the replyTo addressreplyTo(javax.jms.Destination destination) Sets the replyTo addresslongsize()Returns the size (bytes) of the Message.longReturns the JMS timestamp.timestamp(long timestamp) Sets the JMS timestamptoString()type()return the type of this Message
-
Method Details
-
getImpl
public com.swiftmq.jms.MessageImpl getImpl()Internal use only. -
copyProperties
-
isSelected
public boolean isSelected(com.swiftmq.ms.MessageSelector selector) throws javax.jms.JMSException Internal use only.- Throws:
javax.jms.JMSException
-
type
-
persistent
Marks this Message as persistent.- Returns:
- Message
- Throws:
javax.jms.JMSException
-
isPersistent
public boolean isPersistent() throws javax.jms.JMSExceptionReturns true if this Message is persistent.- Returns:
- true/false
- Throws:
javax.jms.JMSException
-
nonpersistent
Marks this Message as non-persistent.- Returns:
- Message
- Throws:
javax.jms.JMSException
-
isNonpersistent
public boolean isNonpersistent() throws javax.jms.JMSExceptionReturns true if this Message is non-persistent.- Returns:
- true/false
- Throws:
javax.jms.JMSException
-
destination
Returns the Name of the JMSDestination.- Returns:
- Name of the JMSDestination
- Throws:
javax.jms.JMSException
-
size
public long size()Returns the size (bytes) of the Message.- Returns:
- size
-
messageId
-
messageId
Returns the JMS message ID.- Returns:
- message id
- Throws:
javax.jms.JMSException
-
correlationId
-
correlationId
Returns the JMS correlation ID.- Returns:
- correlation id
- Throws:
javax.jms.JMSException
-
priority
Sets the JMS priority.- Parameters:
prio- priority- Returns:
- Message
- Throws:
javax.jms.JMSException
-
priority
public int priority() throws javax.jms.JMSExceptionReturns the JMS priority- Returns:
- priority
- Throws:
javax.jms.JMSException
-
expiration
Sets the JMS expiration- Parameters:
exp- expiration- Returns:
- Message
- Throws:
javax.jms.JMSException
-
expiration
public long expiration() throws javax.jms.JMSExceptionReturns the JMS expiration.- Returns:
- expiration
- Throws:
javax.jms.JMSException
-
timestamp
Sets the JMS timestamp- Parameters:
timestamp- time stamp- Returns:
- Message
- Throws:
javax.jms.JMSException
-
timestamp
public long timestamp() throws javax.jms.JMSExceptionReturns the JMS timestamp.- Returns:
- timestamp
- Throws:
javax.jms.JMSException
-
replyTo
Sets the replyTo address- Parameters:
destination-- Returns:
- Message
- Throws:
javax.jms.JMSException
-
replyTo
public javax.jms.Destination replyTo() throws javax.jms.JMSExceptionReturns the replyTo address- Returns:
- replyTo Address
- Throws:
javax.jms.JMSException
-
property
-
clearBody
-
properties
Returns a PropertySet that contains all Message Properties of this Message- Returns:
- PropertySet
- Throws:
Exception
-
onMessageEnabled
Can be set to false in an Input callback to disable calling the onMessage Callback with this Message.- Parameters:
onMessageEnabled- true/false- Returns:
- this
-
isOnMessageEnabled
public boolean isOnMessageEnabled()Internal use. -
toString
-