类 LongConnectionMeta
java.lang.Object
com.walker.tcp.connect.AbstractConnection
com.walker.tcp.connect.LongConnection
com.walker.tcp.lb.LongConnectionMeta
- 所有已实现的接口:
Connection
长连接元数据对象。
1) 该对象描述了每个物理连接基本情况,全局存在。
2) 在集群环境中使用,会集中存储到 Redis 中。
3) 当物理连接被删除时,该描述缓存也会被一同删除。
4) 当该对象缓存存在时,我们认为物理连接也是存在的。
- 作者:
- 时克英
-
字段概要
从类继承的字段 com.walker.tcp.connect.AbstractConnection
logger -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明boolean只要存在该对象,说明物理连接还在。protected voidvoidsetResponseWriter(ResponseWriter responseWriter) booleanvoid从类继承的方法 com.walker.tcp.connect.AbstractConnection
bindName, disconnect, 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
-
构造器详细资料
-
LongConnectionMeta
public LongConnectionMeta() -
LongConnectionMeta
-
-
方法详细资料
-
supportLongConnection
public boolean supportLongConnection()- 指定者:
supportLongConnection在接口中Connection- 覆盖:
supportLongConnection在类中LongConnection
-
isConnected
public boolean isConnected()只要存在该对象,说明物理连接还在。- 指定者:
isConnected在接口中Connection- 覆盖:
isConnected在类中AbstractConnection- 返回:
-
write
- 指定者:
write在接口中Connection- 覆盖:
write在类中LongConnection
-
onWrite
-
getResponseWriter
-
setResponseWriter
-