public class Env extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
CLUSTER_ROUTER_NAME |
static String |
DEBUG_ENABLED |
static String |
DEFAULT_CLUSTER_ROUTER_NAME |
static boolean |
IS_DEBUG_ENABLED |
static boolean |
IS_OFFLINE_ENABLED |
static String |
OFFLINE_ENABLED |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getClusterRouterName()
获取配置文件中的集群路由名称,作为默认值吧
|
static boolean |
isDebugEnabled()
判断当前配置是否启用调试模式
|
static boolean |
isOfflineEnabled()
判断当前配置是否是离线模式,如果是离线模式,则不会发出请求
|
public static boolean IS_DEBUG_ENABLED
public static boolean IS_OFFLINE_ENABLED
public static String DEFAULT_CLUSTER_ROUTER_NAME
public static boolean isDebugEnabled()
truepublic static boolean isOfflineEnabled()
truepublic static String getClusterRouterName()
Copyright © 2020. All rights reserved.