Package com.atlassian.bamboo.amq
Class AgentJmsUtils
java.lang.Object
com.atlassian.bamboo.amq.AgentJmsUtils
Utility class for dealing with JMS messages.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getDestinationName
(javax.jms.Topic topic, String id) static @Nullable Long
getInstanceFingerprint
(javax.jms.Message message) static @Nullable Integer
getUuidHash
(javax.jms.Message message) Retrieves UUID hash from the message.static boolean
isExpensive
(javax.jms.Message message) Checks whether the message was marked as expensive.static void
setExpensive
(javax.jms.Message message, boolean expensive) Marks message as expensive.static void
setFingerprint
(javax.jms.Message message, ServerFingerprint fingerprint) static void
setUuidHash
(javax.jms.Message message, int uuidHash) Sets agent UUID hash on the message.
-
Method Details
-
getUuidHash
Retrieves UUID hash from the message. -
setUuidHash
public static void setUuidHash(javax.jms.Message message, int uuidHash) Sets agent UUID hash on the message. -
setExpensive
public static void setExpensive(javax.jms.Message message, boolean expensive) Marks message as expensive. SeeExpensiveMessage
-
isExpensive
public static boolean isExpensive(javax.jms.Message message) Checks whether the message was marked as expensive. -
getDestinationName
-
getInstanceFingerprint
@Nullable public static @Nullable Long getInstanceFingerprint(javax.jms.Message message) throws javax.jms.JMSException - Throws:
javax.jms.JMSException
-
setFingerprint
public static void setFingerprint(javax.jms.Message message, ServerFingerprint fingerprint) throws javax.jms.JMSException - Throws:
javax.jms.JMSException
-