|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.alibaba.dubbo.remoting.transport.ServerDelegate
com.alibaba.dubbo.remoting.p2p.support.ServerPeer
public class ServerPeer
ServerPeer
| Constructor Summary | |
|---|---|
ServerPeer(Server server,
Map<URL,Client> clients,
Group group)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.alibaba.dubbo.remoting.transport.ServerDelegate |
|---|
close, getChannelHandler, getLocalAddress, getServer, getUrl, isBound, isClosed, reset, reset, setServer |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.alibaba.dubbo.remoting.Server |
|---|
isBound, reset |
| Methods inherited from interface com.alibaba.dubbo.remoting.Endpoint |
|---|
close, getChannelHandler, getLocalAddress, getUrl, isClosed |
| Methods inherited from interface com.alibaba.dubbo.common.Resetable |
|---|
reset |
| Constructor Detail |
|---|
public ServerPeer(Server server,
Map<URL,Client> clients,
Group group)
| Method Detail |
|---|
public void leave()
throws RemotingException
Peer
leave in interface PeerRemotingExceptionpublic void close()
Endpoint
close in interface Endpointclose in class ServerDelegatepublic Collection<Channel> getChannels()
Server
getChannels in interface ServergetChannels in class ServerDelegatepublic Channel getChannel(InetSocketAddress remoteAddress)
Server
getChannel in interface ServergetChannel in class ServerDelegate
public void send(Object message)
throws RemotingException
Endpoint
send in interface Endpointsend in class ServerDelegateRemotingException
public void send(Object message,
boolean sent)
throws RemotingException
Endpoint
send in interface Endpointsend in class ServerDelegatesent - 是否已发送完成
RemotingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||