public class DefaultDeviceSessionManager extends Object implements DeviceSessionManager
| 构造器和说明 |
|---|
DefaultDeviceSessionManager() |
public void setTransportLimit(Transport transport, long limit)
public void shutdown()
public boolean isOutOfMaximumSessionLimit(Transport transport)
public long getMaximumSession(Transport transport)
getMaximumSession 在接口中 DeviceSessionManagerpublic long getCurrentSession(Transport transport)
getCurrentSession 在接口中 DeviceSessionManagerpublic reactor.core.publisher.Mono<Long> checkSession()
public void init()
public DeviceSession getSession(String clientId)
getSession 在接口中 DeviceSessionManagerpublic ChildrenDeviceSession getSession(String deviceId, String childrenId)
getSession 在接口中 DeviceSessionManagerpublic reactor.core.publisher.Mono<ChildrenDeviceSession> registerChildren(String deviceId, String childrenDeviceId)
registerChildren 在接口中 DeviceSessionManagerpublic reactor.core.publisher.Mono<ChildrenDeviceSession> unRegisterChildren(String deviceId, String childrenId)
unRegisterChildren 在接口中 DeviceSessionManagerpublic DeviceSession replace(DeviceSession oldSession, DeviceSession newSession)
replace 在接口中 DeviceSessionManagerpublic DeviceSession register(DeviceSession session)
register 在接口中 DeviceSessionManagerpublic reactor.core.publisher.Flux<DeviceSession> onRegister()
onRegister 在接口中 DeviceSessionManagerpublic reactor.core.publisher.Flux<DeviceSession> onUnRegister()
onUnRegister 在接口中 DeviceSessionManagerpublic reactor.core.publisher.Flux<DeviceSession> getAllSession()
getAllSession 在接口中 DeviceSessionManagerpublic boolean sessionIsAlive(String deviceId)
sessionIsAlive 在接口中 DeviceSessionManagerpublic DeviceSession unregister(String idOrDeviceId)
unregister 在接口中 DeviceSessionManagerCopyright © 2019–2022. All rights reserved.