类 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)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
close()
close the channel.void
close(int timeout)
Graceful close the channel.void
connected(Channel ch)
on channel connected.void
disconnected(Channel ch)
on channel disconnected.int
getAccepts()
InetSocketAddress
getBindAddress()
int
getIdleTimeout()
InetSocketAddress
getLocalAddress()
get local address.void
reset(URL url)
reset.void
send(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)
从接口复制的说明:Resetable
reset.- 指定者:
reset
在接口中Resetable
- 覆盖:
reset
在类中AbstractEndpoint
-
send
public void send(Object message, boolean sent) throws RemotingException
从接口复制的说明:Endpoint
send message.- 指定者:
send
在接口中Endpoint
sent
- already sent to socket?- 抛出:
RemotingException
-
close
public void close()
从接口复制的说明:Endpoint
close the channel.- 指定者:
close
在接口中Endpoint
- 覆盖:
close
在类中AbstractPeer
-
close
public void close(int timeout)
从接口复制的说明:Endpoint
Graceful close the channel.- 指定者:
close
在接口中Endpoint
- 覆盖:
close
在类中AbstractPeer
-
getLocalAddress
public InetSocketAddress getLocalAddress()
从接口复制的说明:Endpoint
get 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
从接口复制的说明:ChannelHandler
on channel connected.- 指定者:
connected
在接口中ChannelHandler
- 覆盖:
connected
在类中AbstractPeer
- 参数:
ch
- channel.- 抛出:
RemotingException
-
disconnected
public void disconnected(Channel ch) throws RemotingException
从接口复制的说明:ChannelHandler
on channel disconnected.- 指定者:
disconnected
在接口中ChannelHandler
- 覆盖:
disconnected
在类中AbstractPeer
- 参数:
ch
- channel.- 抛出:
RemotingException
-
-