【7.0.4】删掉没用配置

pull/22/head
fengshuonan 2021-07-07 13:59:04 +08:00
parent 4d5b24e638
commit 8bd0b26a59
1 changed files with 0 additions and 69 deletions

View File

@ -1,69 +0,0 @@
/*
* Copyright [2020-2030] [https://www.stylefeng.cn]
*
* 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.
*
* GunsAPACHE LICENSE 2.0使
*
* 1.LICENSE
* 2.Guns
* 3.
* 4. https://gitee.com/stylefeng/guns
* 5. https://gitee.com/stylefeng/guns
* 6.
*/
package cn.stylefeng.roses.kernel.socket.api.expander;
import cn.stylefeng.roses.kernel.config.api.context.ConfigContext;
/**
* socket
*
* @author majianguo
* @date 2021/6/7 11:36
*/
public class SocketConfigExpander {
/**
*
*
* @return {@link java.lang.String}
* @author majianguo
* @date 2021/6/7 11:39
**/
public static String getSocketHost() {
return ConfigContext.me().getSysConfigValueWithDefault("SOCKET_HOST", String.class, "0.0.0.0");
}
/**
*
*
* @return {@link java.lang.Integer}
* @author majianguo
* @date 2021/6/7 11:41
**/
public static Integer getSocketPort() {
return ConfigContext.me().getSysConfigValueWithDefault("SOCKET_PORT", Integer.class, 11130);
}
/**
*
*
* @return {@link java.lang.Integer}
* @author majianguo
* @date 2021/6/7 11:41
**/
public static Integer getSocketServerChunkSize() {
return ConfigContext.me().getSysConfigValueWithDefault("SOCKET_SERVER_CHUNK_SIZE", Integer.class, 512 * 1024 * 1024);
}
}