public class ChannelSessionManager extends Object implements SessionManager<io.netty.channel.ChannelHandlerContext,ChannelSession>
ChannelHandlerContext SessionManager.| 构造器和说明 |
|---|
ChannelSessionManager() |
ChannelSessionManager(Map<String,ChannelSession> sessionMap) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected ChannelSession |
buildClientSession(String id,
io.netty.channel.ChannelHandlerContext context) |
ChannelSession |
createSession(io.netty.channel.ChannelHandlerContext context) |
protected String |
generateSessionId(io.netty.channel.ChannelHandlerContext context) |
ChannelSession |
getSession(io.netty.channel.ChannelHandlerContext context) |
Map<String,ChannelSession> |
getSessions() |
boolean |
removeSession(io.netty.channel.ChannelHandlerContext context) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSessionByIdpublic ChannelSessionManager()
public ChannelSessionManager(Map<String,ChannelSession> sessionMap)
public ChannelSession createSession(io.netty.channel.ChannelHandlerContext context)
createSession 在接口中 SessionManager<io.netty.channel.ChannelHandlerContext,ChannelSession>public ChannelSession getSession(io.netty.channel.ChannelHandlerContext context)
getSession 在接口中 SessionManager<io.netty.channel.ChannelHandlerContext,ChannelSession>public boolean removeSession(io.netty.channel.ChannelHandlerContext context)
removeSession 在接口中 SessionManager<io.netty.channel.ChannelHandlerContext,ChannelSession>public Map<String,ChannelSession> getSessions()
getSessions 在接口中 SessionManager<io.netty.channel.ChannelHandlerContext,ChannelSession>protected String generateSessionId(io.netty.channel.ChannelHandlerContext context)
protected ChannelSession buildClientSession(String id, io.netty.channel.ChannelHandlerContext context)
Copyright © 2022. All rights reserved.