|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.alibaba.dubbo.remoting.transport.ChannelDelegate
public class ChannelDelegate
ChannelDelegate
| Constructor Summary | |
|---|---|
ChannelDelegate()
|
|
ChannelDelegate(Channel channel)
|
|
| Method Summary | |
|---|---|
void |
close()
close the channel. |
void |
close(int timeout)
Graceful close the channel. |
Object |
getAttribute(String key)
get attribute. |
Channel |
getChannel()
|
ChannelHandler |
getChannelHandler()
get channel handler. |
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 |
removeAttribute(String key)
remove attribute. |
void |
send(Object message)
send message. |
void |
send(Object message,
boolean sent)
send message. |
void |
setAttribute(String key,
Object value)
set attribute. |
void |
setChannel(Channel channel)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChannelDelegate()
public ChannelDelegate(Channel channel)
| Method Detail |
|---|
public Channel getChannel()
public void setChannel(Channel channel)
public URL getUrl()
Endpoint
getUrl in interface Endpointpublic InetSocketAddress getRemoteAddress()
Channel
getRemoteAddress in interface Channelpublic 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 | |||||||||