public class ServerPeer extends ServerDelegate implements Peer
| Constructor and Description |
|---|
ServerPeer(RemotingServer server,
Map<URL,Client> clients,
Group group) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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<URL,Client> clients, Group group)
public void leave()
throws RemotingException
Peerleave in interface PeerRemotingExceptionpublic void close()
Endpointclose in interface Endpointclose in class ServerDelegatepublic Collection<Channel> getChannels()
RemotingServergetChannels in interface RemotingServergetChannels in class ServerDelegatepublic Channel getChannel(InetSocketAddress remoteAddress)
RemotingServergetChannel in interface RemotingServergetChannel in class ServerDelegatepublic void send(Object message) throws RemotingException
Endpointsend in interface Endpointsend in class ServerDelegateRemotingExceptionpublic void send(Object message, boolean sent) throws RemotingException
Endpointsend in interface Endpointsend in class ServerDelegatesent - already sent to socket?RemotingExceptionCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.