|
@@ -28,6 +28,8 @@ import java.util.concurrent.TimeUnit;
|
|
|
public class GCenter extends AbstractService {
|
|
|
|
|
|
private static final Logger logger;
|
|
|
+
|
|
|
+ public static ScheduledThreadPoolExecutor scheduleExec = new ScheduledThreadPoolExecutor(2, new NamedThreadFactory("taskTimer", true));
|
|
|
/** 运行环境 **/
|
|
|
public static final Environment env = Environment.getInstance();
|
|
|
/** 服务器设置目录 **/
|
|
@@ -46,8 +48,6 @@ public class GCenter extends AbstractService {
|
|
|
/** 绑定的http 端口 **/
|
|
|
public static int BIND_HTTP_PORT = 4001;
|
|
|
|
|
|
- public ScheduledThreadPoolExecutor scheduleExec = new ScheduledThreadPoolExecutor(2, new NamedThreadFactory("taskTimer", true));
|
|
|
-
|
|
|
public static HashMap<Integer, NetHandler> handlers = new HashMap<>();
|
|
|
|
|
|
private static volatile GCenter instance;
|