com.feingto.iot.common.Constants Maven / Gradle / Ivy
package com.feingto.iot.common;
import io.netty.util.AttributeKey;
import java.util.concurrent.atomic.AtomicInteger;
/**
* 常量
*
* @author longfei
*/
public class Constants {
/**
* 自定义分隔符
*/
public static final String DELIMITER = "#_";
/**
* 报文头
*/
public static final byte HEAD = (byte) 0x79;
/**
* 报文尾
*/
public static final byte TAIL = (byte) 0xFF;
/**
* 当前连接数计数器
*/
public static AtomicInteger CONNECT_COUNTER = new AtomicInteger(0);
/**
* channel属性: clientIdentifier
*/
public static AttributeKey KEY_CLIENT_ID = AttributeKey.valueOf("clientId");
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy