public class NettyConnectionClient extends AbstractConnectionClient
| 限定符和类型 | 字段和说明 |
|---|---|
static io.netty.util.AttributeKey<AbstractConnectionClient> |
CONNECTION |
| 构造器和说明 |
|---|
NettyConnectionClient(org.apache.dubbo.common.URL url,
ChannelHandler handler) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addCloseListener(Runnable func) |
void |
createConnectingPromise() |
void |
destroy() |
Object |
getChannel(Boolean generalizable) |
io.netty.util.concurrent.Promise<Void> |
getClosePromise() |
static AbstractConnectionClient |
getConnectionClientFromChannel(io.netty.channel.Channel channel) |
boolean |
isAvailable() |
void |
onConnected(Object channel) |
void |
onGoaway(Object channel) |
String |
toString() |
io.netty.channel.ChannelFuture |
write(Object request) |
getCounter, release, retainclose, close, disconnect, getAttribute, getConnectAddress, getLocalAddress, getRemoteAddress, hasAttribute, isConnected, reconnect, removeAttribute, send, setAttributereset, resetcaught, connected, disconnected, getChannelHandler, getDelegateHandler, getHandler, getUrl, isClosed, isClosing, received, send, sent, startClosegetChannelHandler, getUrl, isClosed, send, startClosecanHandleIdlepublic static final io.netty.util.AttributeKey<AbstractConnectionClient> CONNECTION
public NettyConnectionClient(org.apache.dubbo.common.URL url,
ChannelHandler handler)
throws RemotingException
public void onConnected(Object channel)
onConnected 在类中 AbstractConnectionClientpublic void onGoaway(Object channel)
onGoaway 在类中 AbstractConnectionClientpublic Object getChannel(Boolean generalizable)
getChannel 在类中 AbstractConnectionClientpublic boolean isAvailable()
isAvailable 在类中 AbstractConnectionClientpublic void createConnectingPromise()
public io.netty.util.concurrent.Promise<Void> getClosePromise()
public static AbstractConnectionClient getConnectionClientFromChannel(io.netty.channel.Channel channel)
public io.netty.channel.ChannelFuture write(Object request) throws RemotingException
public void addCloseListener(Runnable func)
addCloseListener 在类中 AbstractConnectionClientpublic void destroy()
destroy 在类中 AbstractConnectionClientpublic String toString()
toString 在类中 AbstractClientCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.