public class ServerPeer extends ServerDelegate implements Peer
| 构造器和说明 |
|---|
ServerPeer(RemotingServer server,
Map<URL,Client> clients,
Group group) |
| 限定符和类型 | 方法和说明 |
|---|---|
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, startCloseisBound, resetclose, getChannelHandler, getLocalAddress, getUrl, isClosed, startClosecanHandleIdlepublic ServerPeer(RemotingServer server, Map<URL,Client> clients, Group group)
public void leave()
throws RemotingException
Peerleave 在接口中 PeerRemotingExceptionpublic void close()
Endpointclose 在接口中 Endpointclose 在类中 ServerDelegatepublic Collection<Channel> getChannels()
RemotingServergetChannels 在接口中 RemotingServergetChannels 在类中 ServerDelegatepublic Channel getChannel(InetSocketAddress remoteAddress)
RemotingServergetChannel 在接口中 RemotingServergetChannel 在类中 ServerDelegatepublic void send(Object message) throws RemotingException
Endpointsend 在接口中 Endpointsend 在类中 ServerDelegateRemotingExceptionpublic void send(Object message, boolean sent) throws RemotingException
Endpointsend 在接口中 Endpointsend 在类中 ServerDelegatesent - already sent to socket?RemotingExceptionCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.