类 DefaultLongConnection
java.lang.Object
com.walker.tcp.connect.AbstractConnection
com.walker.tcp.connect.LongConnection
com.walker.tcp.netty.DefaultLongConnection
- 所有已实现的接口:
Connection
由netty底层实现的长连接对象,该连接被抽象为一个长的TCP连接句柄。
- 作者:
- 时克英
-
字段概要
字段从类继承的字段 com.walker.tcp.connect.AbstractConnection
logger -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void服务端强制断开连接boolean长连接,判断是否连接状态voidsetChannelHandlerContext(io.netty.channel.ChannelHandlerContext ctx) void从类继承的方法 com.walker.tcp.connect.LongConnection
supportLongConnection从类继承的方法 com.walker.tcp.connect.AbstractConnection
bindName, equals, getAlreadyLogin, getAuthenticated, getConnectionHost, getCreateTimeMills, getEngineId, getId, getLastTime, getLongConnection, getName, getProtocolResolver, hashCode, isAuthenticated, isIdle, read, setAlreadyLogin, setAuthenticated, setConnectionHost, setCreateTimeMills, setEngineId, setId, setIdle, setLastTime, setLongConnection, setName, setProtocolResolver, toString
-
字段详细资料
-
ctx
public io.netty.channel.ChannelHandlerContext ctx
-
-
构造器详细资料
-
DefaultLongConnection
-
DefaultLongConnection
-
-
方法详细资料
-
write
- 指定者:
write在接口中Connection- 覆盖:
write在类中LongConnection
-
disconnect
public void disconnect()从接口复制的说明:Connection服务端强制断开连接- 指定者:
disconnect在接口中Connection- 覆盖:
disconnect在类中AbstractConnection
-
isConnected
public boolean isConnected()从接口复制的说明:Connection长连接,判断是否连接状态- 指定者:
isConnected在接口中Connection- 覆盖:
isConnected在类中AbstractConnection- 返回:
-
setChannelHandlerContext
public void setChannelHandlerContext(io.netty.channel.ChannelHandlerContext ctx)
-