类 ServerPeer
- java.lang.Object
-
- org.apache.dubbo.remoting.transport.ServerDelegate
-
- org.apache.dubbo.remoting.p2p.support.ServerPeer
-
- 所有已实现的接口:
org.apache.dubbo.common.Resetable,Endpoint,IdleSensible,Peer,RemotingServer
public class ServerPeer extends ServerDelegate implements Peer
ServerPeer
-
-
构造器概要
构造器 构造器 说明 ServerPeer(RemotingServer server, Map<org.apache.dubbo.common.URL,Client> clients, Group group)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidclose()ChannelgetChannel(InetSocketAddress remoteAddress)Collection<Channel>getChannels()voidleave()leave.voidsend(Object message)voidsend(Object message, boolean sent)-
从类继承的方法 org.apache.dubbo.remoting.transport.ServerDelegate
close, getChannelHandler, getLocalAddress, getServer, getUrl, isBound, isClosed, reset, reset, setServer, startClose
-
从接口继承的方法 org.apache.dubbo.remoting.Endpoint
close, getChannelHandler, getLocalAddress, getUrl, isClosed, startClose
-
从接口继承的方法 org.apache.dubbo.remoting.IdleSensible
canHandleIdle
-
从接口继承的方法 org.apache.dubbo.remoting.RemotingServer
isBound, reset
-
-
-
-
构造器详细资料
-
ServerPeer
public ServerPeer(RemotingServer server, Map<org.apache.dubbo.common.URL,Client> clients, Group group)
-
-
方法详细资料
-
leave
public void leave() throws RemotingException从接口复制的说明:Peerleave.- 指定者:
leave在接口中Peer- 抛出:
RemotingException
-
close
public void close()
- 指定者:
close在接口中Endpoint- 覆盖:
close在类中ServerDelegate
-
getChannels
public Collection<Channel> getChannels()
- 指定者:
getChannels在接口中RemotingServer- 覆盖:
getChannels在类中ServerDelegate
-
getChannel
public Channel getChannel(InetSocketAddress remoteAddress)
- 指定者:
getChannel在接口中RemotingServer- 覆盖:
getChannel在类中ServerDelegate
-
send
public void send(Object message) throws RemotingException
- 指定者:
send在接口中Endpoint- 覆盖:
send在类中ServerDelegate- 抛出:
RemotingException
-
send
public void send(Object message, boolean sent) throws RemotingException
- 指定者:
send在接口中Endpoint- 覆盖:
send在类中ServerDelegate- 抛出:
RemotingException
-
-