com.huawei.registry.config.ConfigConstants Maven / Gradle / Ivy
/*
* Copyright (C) 2022-2022 Huawei Technologies Co., Ltd. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package com.huawei.registry.config;
/**
* 配置常量定义
*
* @author zhouss
* @since 2022-03-02
*/
public class ConfigConstants {
/**
* 默认实例拉取间隔 单位秒
*/
public static final int DEFAULT_PULL_INTERVAL = 15;
/**
* 默认心跳失败重试次数
*/
public static final int DEFAULT_HEARTBEAT_RETRY_TIMES = 3;
/**
* 默认心跳发送间隔 单位秒
*/
public static final int DEFAULT_HEARTBEAT_INTERVAL = 15;
/**
* APP与Service分隔符
*/
public static final String APP_SERVICE_SEPARATOR = ".";
/**
* 默认值
*/
public static final String COMMON_DEFAULT_VALUE = "default";
/**
* 秒转毫秒单位
*/
public static final long SEC_DELTA = 1000L;
/**
* 公共注册框架版本
*/
public static final String COMMON_FRAMEWORK = "Sermant";
/**
* 服务是否加密公共参数
*/
public static final String SECURE = "secure";
private ConfigConstants() {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy