类 ServerPeer
- java.lang.Object
-
- com.alibaba.dubbo.remoting.transport.ServerDelegate
-
- com.alibaba.dubbo.remoting.p2p.support.ServerPeer
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
close()
close the channel.Channel
getChannel(InetSocketAddress remoteAddress)
get channel.Collection<Channel>
getChannels()
get channels.void
leave()
leave.void
send(Object message)
send message.void
send(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
从接口复制的说明:Peer
leave.- 指定者:
leave
在接口中Peer
- 抛出:
RemotingException
-
close
public void close()
从接口复制的说明:Endpoint
close the channel.- 指定者:
close
在接口中Endpoint
- 覆盖:
close
在类中ServerDelegate
-
getChannels
public Collection<Channel> getChannels()
从接口复制的说明:Server
get channels.- 指定者:
getChannels
在接口中Server
- 覆盖:
getChannels
在类中ServerDelegate
- 返回:
- channels
-
getChannel
public Channel getChannel(InetSocketAddress remoteAddress)
从接口复制的说明:Server
get channel.- 指定者:
getChannel
在接口中Server
- 覆盖:
getChannel
在类中ServerDelegate
- 返回:
- channel
-
send
public void send(Object message) throws RemotingException
从接口复制的说明:Endpoint
send message.- 指定者:
send
在接口中Endpoint
- 覆盖:
send
在类中ServerDelegate
- 抛出:
RemotingException
-
send
public void send(Object message, boolean sent) throws RemotingException
从接口复制的说明:Endpoint
send message.- 指定者:
send
在接口中Endpoint
- 覆盖:
send
在类中ServerDelegate
sent
- already sent to socket?- 抛出:
RemotingException
-
-