public class NettyConnectionClient extends AbstractConnectionClient
| Modifier and Type | Field and Description |
|---|---|
static io.netty.util.AttributeKey<AbstractConnectionClient> |
CONNECTION |
| Constructor and Description |
|---|
NettyConnectionClient(org.apache.dubbo.common.URL url,
ChannelHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
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, increase, 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, startCloseequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChannelHandler, getUrl, isClosed, send, startClosecanHandleIdlepublic static final io.netty.util.AttributeKey<AbstractConnectionClient> CONNECTION
public NettyConnectionClient(org.apache.dubbo.common.URL url,
ChannelHandler handler)
throws RemotingException
RemotingExceptionpublic void onConnected(Object channel)
onConnected in class AbstractConnectionClientpublic void onGoaway(Object channel)
onGoaway in class AbstractConnectionClientpublic Object getChannel(Boolean generalizable)
getChannel in class AbstractConnectionClientpublic boolean isAvailable()
isAvailable in class AbstractConnectionClientpublic void createConnectingPromise()
createConnectingPromise in class AbstractConnectionClientpublic 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
RemotingExceptionpublic void addCloseListener(Runnable func)
addCloseListener in class AbstractConnectionClientpublic void destroy()
destroy in class AbstractConnectionClientpublic String toString()
toString in class AbstractClientCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.