|
||||||||||
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)
|
void |
startClose()
|
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 Client
public URL getUrl()
Endpoint
getUrl
in interface Endpoint
public InetSocketAddress getRemoteAddress()
Channel
getRemoteAddress
in interface Channel
public void reconnect() throws RemotingException
Client
reconnect
in interface Client
RemotingException
public ChannelHandler getChannelHandler()
Endpoint
getChannelHandler
in interface Endpoint
public boolean isConnected()
Channel
isConnected
in interface Channel
public InetSocketAddress getLocalAddress()
Endpoint
getLocalAddress
in interface Endpoint
public boolean hasAttribute(String key)
Channel
hasAttribute
in interface Channel
key
- key.
public void send(Object message) throws RemotingException
Endpoint
send
in interface Endpoint
RemotingException
public Object getAttribute(String key)
Channel
getAttribute
in interface Channel
key
- key.
public void setAttribute(String key, Object value)
Channel
setAttribute
in interface Channel
key
- key.value
- value.public void send(Object message, boolean sent) throws RemotingException
Endpoint
send
in interface Endpoint
sent
- 是否已发送完成
RemotingException
public void removeAttribute(String key)
Channel
removeAttribute
in interface Channel
key
- key.public void close()
Endpoint
close
in interface Endpoint
public void close(int timeout)
Endpoint
close
in interface Endpoint
public void startClose()
startClose
in interface Endpoint
public boolean isClosed()
Endpoint
isClosed
in interface Endpoint
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |