| Constructor and Description |
|---|
ServerPeer(Server 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, waitclose, getChannelHandler, getLocalAddress, getUrl, isClosed, startClosepublic void leave()
throws RemotingException
Peerleave in interface PeerRemotingExceptionpublic void close()
Endpointclose in interface Endpointclose in class ServerDelegatepublic Collection<Channel> getChannels()
ServergetChannels in interface ServergetChannels in class ServerDelegatepublic Channel getChannel(InetSocketAddress remoteAddress)
ServergetChannel in interface ServergetChannel 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–2018 The Apache Software Foundation. All rights reserved.