All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hecloud.runtime.common.enums.HoteamExchange Maven / Gradle / Ivy

package com.hecloud.runtime.common.enums;

/**
 * 交换枚举
 *
 * @author LoveinBJ
 */
public class HoteamExchange {

    public enum Default {
        /**
         * 默认交换
         */
        Direct("hoteam.direct.exchange"),
        /**
         * Topic交换
         */
        Topic("hoteam.topic.exchange");
        private String exchange;

        Default(String exchange) {
            this.exchange = exchange;
        }

        /**
         * @return the name
         */
        public String getExchange() {
            return exchange;
        }

    }

    public static enum Task {
        /**
         * 任务操作交换机,所有交换机下的队列都会收到消息
         */
        Action("task.action.exchange"),
        /**
         * 任务结果交换机,该交换机下的所有队列都会收到消息
         */
        Result("task.result.fexchange");
        private String exchange;

        Task(String exchange) {
            this.exchange = exchange;
        }

        /**
         * @return the name
         */
        public String getExchange() {
            return exchange;
        }
    }

    public enum Resource {
        /**
         * 资源事件交换
         */
        Event("resource.event.exchange");
        private String exchange;

        Resource(String exchange) {
            this.exchange = exchange;
        }

        /**
         * @return the name
         */
        public String getExchange() {
            return exchange;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy