Class OpenWireUtil


  • public class OpenWireUtil
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.apache.activemq.artemis.core.config.WildcardConfiguration OPENWIRE_WILDCARD  
      static java.lang.String SELECTOR_AWARE_OPTION  
    • Constructor Summary

      Constructors 
      Constructor Description
      OpenWireUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String extractFilterStringOrNull​(org.apache.activemq.command.ConsumerInfo info, org.apache.activemq.command.ActiveMQDestination openWireDest)  
      static org.apache.activemq.command.ActiveMQDestination toAMQAddress​(org.apache.activemq.artemis.api.core.Message message, org.apache.activemq.command.ActiveMQDestination actualDestination)
      We convert the core address to an ActiveMQ Destination.
      static org.apache.activemq.artemis.core.transaction.impl.XidImpl toXID​(org.apache.activemq.command.TransactionId xaXid)  
      static org.apache.activemq.artemis.core.transaction.impl.XidImpl toXID​(org.apache.activemq.command.XATransactionId xaXid)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • OPENWIRE_WILDCARD

        public static final org.apache.activemq.artemis.core.config.WildcardConfiguration OPENWIRE_WILDCARD
      • SELECTOR_AWARE_OPTION

        public static final java.lang.String SELECTOR_AWARE_OPTION
        See Also:
        Constant Field Values
    • Constructor Detail

      • OpenWireUtil

        public OpenWireUtil()
    • Method Detail

      • extractFilterStringOrNull

        public static java.lang.String extractFilterStringOrNull​(org.apache.activemq.command.ConsumerInfo info,
                                                                 org.apache.activemq.command.ActiveMQDestination openWireDest)
      • toAMQAddress

        public static org.apache.activemq.command.ActiveMQDestination toAMQAddress​(org.apache.activemq.artemis.api.core.Message message,
                                                                                   org.apache.activemq.command.ActiveMQDestination actualDestination)
        We convert the core address to an ActiveMQ Destination. We use the actual address on the message rather than the destination set on the consumer because it maybe different and the JMS spec says that it should be what ever was set on publish/send so a divert or wildcard may mean thats its different to the destination subscribed to by the consumer
      • toXID

        public static org.apache.activemq.artemis.core.transaction.impl.XidImpl toXID​(org.apache.activemq.command.TransactionId xaXid)
      • toXID

        public static org.apache.activemq.artemis.core.transaction.impl.XidImpl toXID​(org.apache.activemq.command.XATransactionId xaXid)