类 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)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidconnected(Channel ch)on channel connected.voiddisconnected(Channel ch)on channel disconnected.ChannelgetChannel(InetSocketAddress remoteAddress)get channel.Collection<Channel>getChannels()get channels.booleanisBound()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()
从接口复制的说明:Serveris bound.- 返回:
- bound
-
getChannels
public Collection<Channel> getChannels()
从接口复制的说明:Serverget channels.- 返回:
- channels
-
getChannel
public Channel getChannel(InetSocketAddress remoteAddress)
从接口复制的说明:Serverget channel.- 返回:
- channel
-
connected
public void connected(Channel ch) throws RemotingException
从接口复制的说明:ChannelHandleron channel connected.- 指定者:
connected在接口中ChannelHandler- 覆盖:
connected在类中AbstractServer- 参数:
ch- channel.- 抛出:
RemotingException
-
disconnected
public void disconnected(Channel ch) throws RemotingException
从接口复制的说明:ChannelHandleron channel disconnected.- 指定者:
disconnected在接口中ChannelHandler- 覆盖:
disconnected在类中AbstractServer- 参数:
ch- channel.- 抛出:
RemotingException
-
-