cn.blankcat.dto.websocket.ShardConfig Maven / Gradle / Ivy
package cn.blankcat.dto.websocket;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
// ShardConfig 连接的 shard 配置,ShardID 从 0 开始,ShardCount 最小为 1
public class ShardConfig {
private long shardID;
private long shardCount;
}