1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| package com.walker.infrastructure;
|
| /**
| * 集群中主机服务ID编号,在集群中唯一。
| * <p>引擎在启动之前要调用设置编号。</p>
| * @author 时克英
| * @date 2023-09-29
| */
| public final class ServerId {
|
| private static String id = "0";
|
| public static final String getId(){
| return id;
| }
|
| public static final void setId(String id){
| ServerId.id = id;
| }
| }
|
|