public class NettyConnection extends Object implements Connection
| 构造器和说明 |
|---|
NettyConnection(io.netty.channel.Channel channel) |
NettyConnection(io.netty.channel.Channel channel,
long connectingLatency,
long handshakeLatency) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
long |
getConnectingLatency() |
String |
getId() |
long |
getWsHandshakeLatency() |
boolean |
isActive() |
void |
sendBinary(byte[] payload) |
void |
sendPing() |
void |
sendText(String payload) |
public NettyConnection(io.netty.channel.Channel channel)
public NettyConnection(io.netty.channel.Channel channel,
long connectingLatency,
long handshakeLatency)
public String getId()
getId 在接口中 Connectionpublic boolean isActive()
isActive 在接口中 Connectionpublic long getConnectingLatency()
getConnectingLatency 在接口中 Connectionpublic long getWsHandshakeLatency()
getWsHandshakeLatency 在接口中 Connectionpublic void close()
close 在接口中 Connectionpublic void sendText(String payload)
sendText 在接口中 Connectionpublic void sendBinary(byte[] payload)
sendBinary 在接口中 Connectionpublic void sendPing()
sendPing 在接口中 ConnectionCopyright © 2019. All rights reserved.