|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.alibaba.dubbo.remoting.transport.ServerDelegate
com.alibaba.dubbo.remoting.p2p.support.ServerPeer
public class ServerPeer
ServerPeer
Constructor Summary | |
---|---|
ServerPeer(Server server,
Map<URL,Client> clients,
Group group)
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.alibaba.dubbo.remoting.transport.ServerDelegate |
---|
close, getChannelHandler, getLocalAddress, getServer, getUrl, isBound, isClosed, reset, reset, setServer, startClose |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.alibaba.dubbo.remoting.Server |
---|
isBound, reset |
Methods inherited from interface com.alibaba.dubbo.remoting.Endpoint |
---|
close, getChannelHandler, getLocalAddress, getUrl, isClosed, startClose |
Methods inherited from interface com.alibaba.dubbo.common.Resetable |
---|
reset |
Constructor Detail |
---|
public ServerPeer(Server server, Map<URL,Client> clients, Group group)
Method Detail |
---|
public void leave() throws RemotingException
Peer
leave
in interface Peer
RemotingException
public void close()
Endpoint
close
in interface Endpoint
close
in class ServerDelegate
public Collection<Channel> getChannels()
Server
getChannels
in interface Server
getChannels
in class ServerDelegate
public Channel getChannel(InetSocketAddress remoteAddress)
Server
getChannel
in interface Server
getChannel
in class ServerDelegate
public void send(Object message) throws RemotingException
Endpoint
send
in interface Endpoint
send
in class ServerDelegate
RemotingException
public void send(Object message, boolean sent) throws RemotingException
Endpoint
send
in interface Endpoint
send
in class ServerDelegate
sent
- 是否已发送完成
RemotingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |