public class TcpServerConnectionContext<T> extends ConnectionContext<T>
| 限定符和类型 | 字段和说明 |
|---|---|
protected CloseReason |
closeReason |
protected io.netty.channel.ChannelHandlerContext |
ctx |
protected int |
heartbeatTimeoutCount |
protected java.time.LocalDateTime |
occurTime |
address, channel, lastReceiveTime, lastSendTime, message| 限定符和类型 | 方法和说明 |
|---|---|
void |
increaseHeartbeatTimeoutCount() |
void |
resetHeartbeatTimeoutCount() |
static <T> TcpServerConnectionContext<T> |
wrap(io.netty.channel.ChannelHandlerContext ctx) |
static <T> TcpServerConnectionContext<T> |
wrap(io.netty.channel.ChannelHandlerContext ctx,
InetSocketAddress remoteAddress) |
static <T> ConnectionContext<T> |
wrap(io.netty.channel.ChannelHandlerContext ctx,
InetSocketAddress address,
T message) |
close, getAddress, getChannel, getLastReceiveTime, getLastSendTime, getMessage, setLastReceiveTime, setLastSendTime, setMessage, toString, wrap, wrapprotected final io.netty.channel.ChannelHandlerContext ctx
protected CloseReason closeReason
protected int heartbeatTimeoutCount
protected java.time.LocalDateTime occurTime
public static <T> ConnectionContext<T> wrap(io.netty.channel.ChannelHandlerContext ctx, InetSocketAddress address, T message)
public static <T> TcpServerConnectionContext<T> wrap(io.netty.channel.ChannelHandlerContext ctx)
public static <T> TcpServerConnectionContext<T> wrap(io.netty.channel.ChannelHandlerContext ctx, InetSocketAddress remoteAddress)
public void resetHeartbeatTimeoutCount()
public void increaseHeartbeatTimeoutCount()
Copyright © 2023. All rights reserved.