Class NettyClient
java.lang.Object
org.apache.dubbo.remoting.transport.AbstractPeer
org.apache.dubbo.remoting.transport.AbstractEndpoint
org.apache.dubbo.remoting.transport.AbstractClient
org.apache.dubbo.remoting.transport.netty4.NettyClient
- All Implemented Interfaces:
org.apache.dubbo.common.Resetable,Channel,ChannelHandler,Client,Endpoint,IdleSensible
NettyClient.
-
Constructor Summary
ConstructorsConstructorDescriptionNettyClient(org.apache.dubbo.common.URL url, ChannelHandler handler) The constructor of NettyClient. -
Method Summary
Methods inherited from class org.apache.dubbo.remoting.transport.AbstractClient
close, close, disconnect, getAttribute, getConnectAddress, getLocalAddress, getRemoteAddress, hasAttribute, isConnected, reconnect, removeAttribute, send, setAttribute, toStringMethods inherited from class org.apache.dubbo.remoting.transport.AbstractEndpoint
reset, resetMethods inherited from class org.apache.dubbo.remoting.transport.AbstractPeer
caught, connected, disconnected, getChannelHandler, getDelegateHandler, getHandler, getUrl, isClosed, isClosing, received, send, sent, startCloseMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.dubbo.remoting.Endpoint
getChannelHandler, getUrl, isClosed, send, startCloseMethods inherited from interface org.apache.dubbo.common.Resetable
reset
-
Constructor Details
-
NettyClient
public NettyClient(org.apache.dubbo.common.URL url, ChannelHandler handler) throws RemotingException The constructor of NettyClient. It wil init and start netty.- Throws:
RemotingException
-
-
Method Details
-
canHandleIdle
public boolean canHandleIdle()
-