增加注释

This commit is contained in:
三丙
2025-02-13 10:03:59 +08:00
parent e77baf9412
commit 922b0f0dee
2 changed files with 12 additions and 0 deletions

View File

@@ -61,6 +61,7 @@ public abstract class ProtocolSession implements Closeable {
public abstract void onDownlink(DownlinkRequestMessage downlinkMsg);
@Override
public void close() {
close(SessionCloseReason.DESTRUCTION);
}

View File

@@ -8,7 +8,18 @@ package sanbing.jcpp.protocol.domain;
* @author baigod
*/
public enum SessionCloseReason {
/**
* 自然销毁
*/
DESTRUCTION,
/**
* 失活
*/
INACTIVE,
/**
* 手动销毁
*/
MANUALLY
}