GetDestinationType() 공개 추상적인 메소드

public abstract GetDestinationType ( ) : int
리턴 int
예제 #1
0
        /**
         * if the object passed in is equivalent, return true
         *
         * @param obj the object to compare
         * @return true if this instance and obj are equivalent
         */
        public override bool Equals(Object obj)
        {
            bool result = this == obj;

            if (!result && obj != null && obj is ActiveMQDestination)
            {
                ActiveMQDestination other = (ActiveMQDestination)obj;
                result = this.GetDestinationType() == other.GetDestinationType() &&
                         this.physicalName.Equals(other.physicalName);
            }
            return(result);
        }
예제 #2
0
 public static ActiveMQTopic GetDestinationAdvisoryTopic(ActiveMQDestination destination)
 {
     switch (destination.GetDestinationType())
     {
         case ActiveMQDestination.ACTIVEMQ_QUEUE:
             return QUEUE_ADVISORY_TOPIC;
         case ActiveMQDestination.ACTIVEMQ_TOPIC:
             return TOPIC_ADVISORY_TOPIC;
         case ActiveMQDestination.ACTIVEMQ_TEMPORARY_QUEUE:
             return TEMP_QUEUE_ADVISORY_TOPIC;
         case ActiveMQDestination.ACTIVEMQ_TEMPORARY_TOPIC:
             return TEMP_TOPIC_ADVISORY_TOPIC;
         default:
             throw new NMSException("Unknown destination type: " + destination.DestinationType);
     }
 }