类 ServerPeer
- java.lang.Object
-
- com.alibaba.dubbo.remoting.transport.ServerDelegate
-
- com.alibaba.dubbo.remoting.p2p.support.ServerPeer
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidclose()close the channel.ChannelgetChannel(InetSocketAddress remoteAddress)get channel.Collection<Channel>getChannels()get channels.voidleave()leave.voidsend(Object message)send message.voidsend(Object message, boolean sent)send message.-
从类继承的方法 com.alibaba.dubbo.remoting.transport.ServerDelegate
close, getChannelHandler, getLocalAddress, getServer, getUrl, isBound, isClosed, reset, reset, setServer, startClose
-
从接口继承的方法 com.alibaba.dubbo.remoting.Endpoint
close, getChannelHandler, getLocalAddress, getUrl, isClosed, startClose
-
-
-
-
方法详细资料
-
leave
public void leave() throws RemotingException从接口复制的说明:Peerleave.- 指定者:
leave在接口中Peer- 抛出:
RemotingException
-
close
public void close()
从接口复制的说明:Endpointclose the channel.- 指定者:
close在接口中Endpoint- 覆盖:
close在类中ServerDelegate
-
getChannels
public Collection<Channel> getChannels()
从接口复制的说明:Serverget channels.- 指定者:
getChannels在接口中Server- 覆盖:
getChannels在类中ServerDelegate- 返回:
- channels
-
getChannel
public Channel getChannel(InetSocketAddress remoteAddress)
从接口复制的说明:Serverget channel.- 指定者:
getChannel在接口中Server- 覆盖:
getChannel在类中ServerDelegate- 返回:
- channel
-
send
public void send(Object message) throws RemotingException
从接口复制的说明:Endpointsend message.- 指定者:
send在接口中Endpoint- 覆盖:
send在类中ServerDelegate- 抛出:
RemotingException
-
send
public void send(Object message, boolean sent) throws RemotingException
从接口复制的说明:Endpointsend message.- 指定者:
send在接口中Endpoint- 覆盖:
send在类中ServerDelegatesent- already sent to socket?- 抛出:
RemotingException
-
-