public class ServerPeer extends ServerDelegate implements Peer
| Constructor and Description |
|---|
ServerPeer(Server server,
Map<org.apache.dubbo.common.URL,Client> clients,
Group group) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Channel |
getChannel(InetSocketAddress remoteAddress) |
Collection<Channel> |
getChannels() |
void |
leave()
leave.
|
void |
send(Object message) |
void |
send(Object message,
boolean sent) |
close, getChannelHandler, getLocalAddress, getServer, getUrl, isBound, isClosed, reset, reset, setServer, startCloseequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getChannelHandler, getLocalAddress, getUrl, isClosed, startClosecanHandleIdlepublic void leave()
throws RemotingException
Peerleave in interface PeerRemotingExceptionpublic void close()
close in interface Endpointclose in class ServerDelegatepublic Collection<Channel> getChannels()
getChannels in interface ServergetChannels in class ServerDelegatepublic Channel getChannel(InetSocketAddress remoteAddress)
getChannel in interface ServergetChannel in class ServerDelegatepublic void send(Object message) throws RemotingException
send in interface Endpointsend in class ServerDelegateRemotingExceptionpublic void send(Object message, boolean sent) throws RemotingException
send in interface Endpointsend in class ServerDelegateRemotingExceptionCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.