feat: 新增并发型状态机(基于CAS实现, 未完成).

This commit is contained in:
2025-02-06 11:11:25 +08:00
parent ad26f59438
commit 52946be558
7 changed files with 171 additions and 0 deletions

View File

@@ -100,4 +100,7 @@ public interface StateMachine<S> extends BidirectionalStateManager<S>, AutoClose
* @return 切换成功返回真, 否则返回假
*/
boolean switchTo(S state);
@Override
default void close() throws Exception {}
}