类 NettyServer
- java.lang.Object
-
- org.apache.dubbo.remoting.transport.AbstractPeer
-
- org.apache.dubbo.remoting.transport.AbstractEndpoint
-
- org.apache.dubbo.remoting.transport.AbstractServer
-
- org.apache.dubbo.remoting.transport.netty4.NettyServer
-
- 所有已实现的接口:
Resetable
,ChannelHandler
,Endpoint
,IdleSensible
,RemotingServer
public class NettyServer extends AbstractServer implements RemotingServer
NettyServer.
-
-
构造器概要
构造器 构造器 说明 NettyServer(URL url, ChannelHandler handler)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 boolean
canHandleIdle()
Whether the implementation can sense and handle the idle connection.Channel
getChannel(InetSocketAddress remoteAddress)
get channel.Collection<Channel>
getChannels()
get channels.boolean
isBound()
is bound.-
从类继承的方法 org.apache.dubbo.remoting.transport.AbstractServer
close, close, connected, disconnected, getAccepts, getBindAddress, getLocalAddress, reset, send
-
从类继承的方法 org.apache.dubbo.remoting.transport.AbstractEndpoint
reset
-
从类继承的方法 org.apache.dubbo.remoting.transport.AbstractPeer
caught, getChannelHandler, getDelegateHandler, getHandler, getUrl, isClosed, isClosing, received, send, sent, startClose
-
从接口继承的方法 org.apache.dubbo.remoting.Endpoint
close, close, getChannelHandler, getLocalAddress, getUrl, isClosed, send, send, startClose
-
从接口继承的方法 org.apache.dubbo.remoting.RemotingServer
reset
-
-
-
-
构造器详细资料
-
NettyServer
public NettyServer(URL url, ChannelHandler handler) throws RemotingException
-
-
方法详细资料
-
getChannels
public Collection<Channel> getChannels()
从接口复制的说明:RemotingServer
get channels.- 指定者:
getChannels
在接口中RemotingServer
- 返回:
- channels
-
getChannel
public Channel getChannel(InetSocketAddress remoteAddress)
从接口复制的说明:RemotingServer
get channel.- 指定者:
getChannel
在接口中RemotingServer
- 返回:
- channel
-
canHandleIdle
public boolean canHandleIdle()
从接口复制的说明:IdleSensible
Whether the implementation can sense and handle the idle connection. By default it's false, the implementation relies on dedicated timer to take care of idle connection.- 指定者:
canHandleIdle
在接口中IdleSensible
- 返回:
- whether has the ability to handle idle connection
-
isBound
public boolean isBound()
从接口复制的说明:RemotingServer
is bound.- 指定者:
isBound
在接口中RemotingServer
- 返回:
- bound
-
-