类 GrizzlyServer
- java.lang.Object
-
- com.alibaba.dubbo.remoting.transport.AbstractPeer
-
- com.alibaba.dubbo.remoting.transport.AbstractEndpoint
-
- com.alibaba.dubbo.remoting.transport.AbstractServer
-
- com.alibaba.dubbo.remoting.transport.grizzly.GrizzlyServer
-
- 所有已实现的接口:
Resetable
,ChannelHandler
,Endpoint
,Server
public class GrizzlyServer extends AbstractServer
GrizzlyServer
-
-
构造器概要
构造器 构造器 说明 GrizzlyServer(URL url, ChannelHandler handler)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
connected(Channel ch)
on channel connected.void
disconnected(Channel ch)
on channel disconnected.Channel
getChannel(InetSocketAddress remoteAddress)
get channel.Collection<Channel>
getChannels()
get channels.boolean
isBound()
is bound.-
从类继承的方法 com.alibaba.dubbo.remoting.transport.AbstractServer
close, close, getAccepts, getBindAddress, getIdleTimeout, getLocalAddress, reset, send
-
从类继承的方法 com.alibaba.dubbo.remoting.transport.AbstractEndpoint
reset
-
从类继承的方法 com.alibaba.dubbo.remoting.transport.AbstractPeer
caught, getChannelHandler, getDelegateHandler, getHandler, getUrl, isClosed, isClosing, received, send, sent, startClose
-
从接口继承的方法 com.alibaba.dubbo.remoting.Endpoint
getChannelHandler, getUrl, isClosed, send, startClose
-
-
-
-
构造器详细资料
-
GrizzlyServer
public GrizzlyServer(URL url, ChannelHandler handler) throws RemotingException
-
-
方法详细资料
-
isBound
public boolean isBound()
从接口复制的说明:Server
is bound.- 返回:
- bound
-
getChannels
public Collection<Channel> getChannels()
从接口复制的说明:Server
get channels.- 返回:
- channels
-
getChannel
public Channel getChannel(InetSocketAddress remoteAddress)
从接口复制的说明:Server
get channel.- 返回:
- channel
-
connected
public void connected(Channel ch) throws RemotingException
从接口复制的说明:ChannelHandler
on channel connected.- 指定者:
connected
在接口中ChannelHandler
- 覆盖:
connected
在类中AbstractServer
- 参数:
ch
- channel.- 抛出:
RemotingException
-
disconnected
public void disconnected(Channel ch) throws RemotingException
从接口复制的说明:ChannelHandler
on channel disconnected.- 指定者:
disconnected
在接口中ChannelHandler
- 覆盖:
disconnected
在类中AbstractServer
- 参数:
ch
- channel.- 抛出:
RemotingException
-
-