<gh_stars>0
package com.meteor.common.core;

import java.util.concurrent.ConcurrentHashMap;

/**
 * 公共字典/常量
 * 接口定义常量与class 定义常量区别 https://www.cnblogs.com/EasonJim/p/7871753.html
 *
 * @author SuperMu
 * @time 2019-07-06
 */
public interface CommonConstants {

    public static class Server {
        public static ConcurrentHashMap<String, Class<?>> REGISTER_SERVICE_MAP = new ConcurrentHashMap<>();
    }

    String DEFAULT_DUBBO_PROTOCOL_VERSION = "1.0.0";

    String PROVIDER = "provider";

    String CONSUMER = "consumer";


    int DEFAULT_IO_THREADS = Math.min(Runtime.getRuntime().availableProcessors() + 1, 32);

    String HEARTBEAT_EVENT = null;

    String GROUP_KEY = "group";

    String GROUP_SEPERATOR = ":";

    String DEFAULT_GROUP = "default";

    String VERSION_KEY = "version";

    String DEFAULT_VERSION = "1.0.0";

    String TIMEOUT_KEY = "timeout";

    int DEFAULT_TIMEOUT = 1000;


}
