mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-05-06 19:09:57 +08:00
30 lines
606 B
Java
30 lines
606 B
Java
|
|
/**
|
|||
|
|
* 抖音关注:程序员三丙
|
|||
|
|
* 知识星球:https://t.zsxq.com/j9b21
|
|||
|
|
*/
|
|||
|
|
package sanbing.jcpp.protocol.provider;
|
|||
|
|
|
|||
|
|
import sanbing.jcpp.protocol.domain.ProtocolSession;
|
|||
|
|
|
|||
|
|
import java.util.UUID;
|
|||
|
|
import java.util.concurrent.CompletableFuture;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* @author baigod
|
|||
|
|
*/
|
|||
|
|
public interface ProtocolSessionRegistryProvider {
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 注册会话
|
|||
|
|
*/
|
|||
|
|
void register(ProtocolSession protocolSession);
|
|||
|
|
|
|||
|
|
void unregister(UUID sessionId);
|
|||
|
|
|
|||
|
|
CompletableFuture<ProtocolSession> get(UUID sessionId);
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 活跃会话
|
|||
|
|
*/
|
|||
|
|
void activate(ProtocolSession protocolSession);
|
|||
|
|
}
|