类 AbstractServer
- java.lang.Object
-
- com.alibaba.dubbo.remoting.transport.AbstractPeer
-
- com.alibaba.dubbo.remoting.transport.AbstractEndpoint
-
- com.alibaba.dubbo.remoting.transport.AbstractServer
-
- 所有已实现的接口:
Resetable,ChannelHandler,Endpoint,Server
- 直接已知子类:
GrizzlyServer,MinaServer,NettyServer,NettyServer
public abstract class AbstractServer extends AbstractEndpoint implements Server
AbstractServer
-
-
构造器概要
构造器 构造器 说明 AbstractServer(URL url, ChannelHandler handler)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidclose()close the channel.voidclose(int timeout)Graceful close the channel.voidconnected(Channel ch)on channel connected.voiddisconnected(Channel ch)on channel disconnected.intgetAccepts()InetSocketAddressgetBindAddress()intgetIdleTimeout()InetSocketAddressgetLocalAddress()get local address.voidreset(URL url)reset.voidsend(Object message, boolean sent)send message.-
从类继承的方法 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
-
从接口继承的方法 com.alibaba.dubbo.remoting.Server
getChannel, getChannels, isBound, reset
-
-
-
-
构造器详细资料
-
AbstractServer
public AbstractServer(URL url, ChannelHandler handler) throws RemotingException
-
-
方法详细资料
-
reset
public void reset(URL url)
从接口复制的说明:Resetablereset.- 指定者:
reset在接口中Resetable- 覆盖:
reset在类中AbstractEndpoint
-
send
public void send(Object message, boolean sent) throws RemotingException
从接口复制的说明:Endpointsend message.- 指定者:
send在接口中Endpointsent- already sent to socket?- 抛出:
RemotingException
-
close
public void close()
从接口复制的说明:Endpointclose the channel.- 指定者:
close在接口中Endpoint- 覆盖:
close在类中AbstractPeer
-
close
public void close(int timeout)
从接口复制的说明:EndpointGraceful close the channel.- 指定者:
close在接口中Endpoint- 覆盖:
close在类中AbstractPeer
-
getLocalAddress
public InetSocketAddress getLocalAddress()
从接口复制的说明:Endpointget local address.- 指定者:
getLocalAddress在接口中Endpoint- 返回:
- local address.
-
getBindAddress
public InetSocketAddress getBindAddress()
-
getAccepts
public int getAccepts()
-
getIdleTimeout
public int getIdleTimeout()
-
connected
public void connected(Channel ch) throws RemotingException
从接口复制的说明:ChannelHandleron channel connected.- 指定者:
connected在接口中ChannelHandler- 覆盖:
connected在类中AbstractPeer- 参数:
ch- channel.- 抛出:
RemotingException
-
disconnected
public void disconnected(Channel ch) throws RemotingException
从接口复制的说明:ChannelHandleron channel disconnected.- 指定者:
disconnected在接口中ChannelHandler- 覆盖:
disconnected在类中AbstractPeer- 参数:
ch- channel.- 抛出:
RemotingException
-
-