public class ServerPeer extends ServerDelegate implements Peer
| Constructor and Description |
|---|
ServerPeer(RemotingServer 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, waitisBound, resetclose, getChannelHandler, getLocalAddress, getUrl, isClosed, startClosecanHandleIdlepublic ServerPeer(RemotingServer server, Map<org.apache.dubbo.common.URL,Client> clients, Group group)
public void leave()
throws RemotingException
Peerleave in interface PeerRemotingExceptionpublic void close()
close in interface Endpointclose in class ServerDelegatepublic Collection<Channel> getChannels()
getChannels in interface RemotingServergetChannels in class ServerDelegatepublic Channel getChannel(InetSocketAddress remoteAddress)
getChannel in interface RemotingServergetChannel 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.