|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.alibaba.dubbo.remoting.transport.ClientDelegate
public class ClientDelegate
ClientDelegate
| Constructor Summary | |
|---|---|
ClientDelegate()
|
|
ClientDelegate(Client client)
|
|
| Method Summary | |
|---|---|
void |
close()
close the channel. |
void |
close(int timeout)
Graceful close the channel. |
Object |
getAttribute(String key)
get attribute. |
ChannelHandler |
getChannelHandler()
get channel handler. |
Client |
getClient()
|
InetSocketAddress |
getLocalAddress()
get local address. |
InetSocketAddress |
getRemoteAddress()
get remote address. |
URL |
getUrl()
get url. |
boolean |
hasAttribute(String key)
has attribute. |
boolean |
isClosed()
is closed. |
boolean |
isConnected()
is connected. |
void |
reconnect()
reconnect. |
void |
removeAttribute(String key)
remove attribute. |
void |
reset(Parameters parameters)
Deprecated. |
void |
reset(URL url)
reset. |
void |
send(Object message)
send message. |
void |
send(Object message,
boolean sent)
send message. |
void |
setAttribute(String key,
Object value)
set attribute. |
void |
setClient(Client client)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClientDelegate()
public ClientDelegate(Client client)
| Method Detail |
|---|
public Client getClient()
public void setClient(Client client)
public void reset(URL url)
Resetable
reset in interface Resetable@Deprecated public void reset(Parameters parameters)
reset in interface Clientpublic URL getUrl()
Endpoint
getUrl in interface Endpointpublic InetSocketAddress getRemoteAddress()
Channel
getRemoteAddress in interface Channel
public void reconnect()
throws RemotingException
Client
reconnect in interface ClientRemotingExceptionpublic ChannelHandler getChannelHandler()
Endpoint
getChannelHandler in interface Endpointpublic boolean isConnected()
Channel
isConnected in interface Channelpublic InetSocketAddress getLocalAddress()
Endpoint
getLocalAddress in interface Endpointpublic boolean hasAttribute(String key)
Channel
hasAttribute in interface Channelkey - key.
public void send(Object message)
throws RemotingException
Endpoint
send in interface EndpointRemotingExceptionpublic Object getAttribute(String key)
Channel
getAttribute in interface Channelkey - key.
public void setAttribute(String key,
Object value)
Channel
setAttribute in interface Channelkey - key.value - value.
public void send(Object message,
boolean sent)
throws RemotingException
Endpoint
send in interface Endpointsent - 是否已发送完成
RemotingExceptionpublic void removeAttribute(String key)
Channel
removeAttribute in interface Channelkey - key.public void close()
Endpoint
close in interface Endpointpublic void close(int timeout)
Endpoint
close in interface Endpointpublic boolean isClosed()
Endpoint
isClosed in interface Endpoint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||