mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-05-04 18:09:54 +08:00
增加注释
This commit is contained in:
@@ -61,6 +61,7 @@ public abstract class ProtocolSession implements Closeable {
|
||||
|
||||
public abstract void onDownlink(DownlinkRequestMessage downlinkMsg);
|
||||
|
||||
@Override
|
||||
public void close() {
|
||||
close(SessionCloseReason.DESTRUCTION);
|
||||
}
|
||||
|
||||
@@ -8,7 +8,18 @@ package sanbing.jcpp.protocol.domain;
|
||||
* @author baigod
|
||||
*/
|
||||
public enum SessionCloseReason {
|
||||
/**
|
||||
* 自然销毁
|
||||
*/
|
||||
DESTRUCTION,
|
||||
|
||||
/**
|
||||
* 失活
|
||||
*/
|
||||
INACTIVE,
|
||||
|
||||
/**
|
||||
* 手动销毁
|
||||
*/
|
||||
MANUALLY
|
||||
}
|
||||
Reference in New Issue
Block a user