org.nervousync.cache.commons.CacheGlobals Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cache-api-jdk11 Show documentation
Show all versions of cache-api-jdk11 Show documentation
Cache API Package, development by Nervousync Studio (NSYC)
The newest version!
/*
* Licensed to the Nervousync Studio (NSYC) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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 org.nervousync.cache.commons;
/**
* Cache static global field value
* 缓存静态变量
*/
public final class CacheGlobals {
/**
* Default connect timeout. Unit: second
* 默认连接超时时间。单位:秒
*/
public static final int DEFAULT_CONNECTION_TIMEOUT = 1;
/**
* Default expire time. Unit: second
* 默认缓存过期时间。单位:秒
*/
public static final int DEFAULT_EXPIRE_TIME = -1;
/**
* Default client pool size
* 默认缓存连接池大小
*/
public static final int DEFAULT_CLIENT_POOL_SIZE = 5;
/**
* Default maximum client size
* 默认最大缓存连接数
*/
public static final int DEFAULT_MAXIMUM_CLIENT = 500;
/**
* Default retry count
* 默认重试次数
*/
public static final int DEFAULT_RETRY_COUNT = 3;
/**
* Default server weight
* 默认服务器权重
*/
public static final int DEFAULT_CACHE_SERVER_WEIGHT = 1;
}