public class NettyConnection extends Object implements Connection
| Constructor and Description |
|---|
NettyConnection(io.netty.channel.Channel channel,
ConnectionPool pool) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getConnectionKey() |
long |
getLastReadTime() |
SocketAddress |
getLocalAddress() |
String |
getRemoteIP() |
int |
getRemotePort() |
void |
refreshLastReadTime(long lastReadTime) |
public NettyConnection(io.netty.channel.Channel channel,
ConnectionPool pool)
public SocketAddress getLocalAddress()
getLocalAddress in interface Connectionpublic int getRemotePort()
getRemotePort in interface Connectionpublic String getRemoteIP()
getRemoteIP in interface Connectionpublic void refreshLastReadTime(long lastReadTime)
refreshLastReadTime in interface Connectionpublic long getLastReadTime()
getLastReadTime in interface Connectionpublic String getConnectionKey()
getConnectionKey in interface Connectionpublic void close()
close in interface AutoCloseableCopyright © 2021 Alibaba Group. All rights reserved.