|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.alibaba.dubbo.remoting.exchange.support.ExchangeServerDelegate
com.alibaba.dubbo.remoting.p2p.exchange.support.ExchangeServerPeer
public class ExchangeServerPeer
ServerPeer
| Constructor Summary | |
|---|---|
ExchangeServerPeer(ExchangeServer server,
Map<URL,ExchangeClient> clients,
ExchangeGroup group)
|
|
| Method Summary | |
|---|---|
void |
close()
close the channel. |
Channel |
getChannel(InetSocketAddress remoteAddress)
get channel. |
Collection<Channel> |
getChannels()
get channels. |
ExchangeChannel |
getExchangeChannel(InetSocketAddress remoteAddress)
get channel. |
Collection<ExchangeChannel> |
getExchangeChannels()
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.exchange.support.ExchangeServerDelegate |
|---|
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 ExchangeServerPeer(ExchangeServer server,
Map<URL,ExchangeClient> clients,
ExchangeGroup group)
| Method Detail |
|---|
public void leave()
throws RemotingException
Peer
leave in interface PeerRemotingExceptionpublic void close()
Endpoint
close in interface Endpointclose in class ExchangeServerDelegatepublic Collection<Channel> getChannels()
Server
getChannels in interface ServergetChannels in class ExchangeServerDelegatepublic Channel getChannel(InetSocketAddress remoteAddress)
Server
getChannel in interface ServergetChannel in class ExchangeServerDelegatepublic Collection<ExchangeChannel> getExchangeChannels()
ExchangeServer
getExchangeChannels in interface ExchangeServergetExchangeChannels in class ExchangeServerDelegatepublic ExchangeChannel getExchangeChannel(InetSocketAddress remoteAddress)
ExchangeServer
getExchangeChannel in interface ExchangeServergetExchangeChannel in class ExchangeServerDelegate
public void send(Object message)
throws RemotingException
Endpoint
send in interface Endpointsend in class ExchangeServerDelegateRemotingException
public void send(Object message,
boolean sent)
throws RemotingException
Endpoint
send in interface Endpointsend in class ExchangeServerDelegatesent - 是否已发送完成
RemotingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||