Class ChannelDelegate
java.lang.Object
org.apache.dubbo.remoting.transport.ChannelDelegate
ChannelDelegate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()close the channel.voidclose(int timeout) Graceful close the channel.getAttribute(String key) get attribute.get channel handler.get local address.get remote address.getUrl()get url.booleanhasAttribute(String key) has attribute.booleanisClosed()is closed.booleanis connected.voidremoveAttribute(String key) remove attribute.voidsend message.voidsend message.voidsetAttribute(String key, Object value) set attribute.voidsetChannel(Channel channel) void
-
Constructor Details
-
ChannelDelegate
public ChannelDelegate() -
ChannelDelegate
-
-
Method Details
-
getChannel
-
setChannel
-
getUrl
Description copied from interface:Endpointget url. -
getRemoteAddress
Description copied from interface:Channelget remote address.- Specified by:
getRemoteAddressin interfaceChannel- Returns:
- remote address.
-
getChannelHandler
Description copied from interface:Endpointget channel handler.- Specified by:
getChannelHandlerin interfaceEndpoint- Returns:
- channel handler
-
isConnected
public boolean isConnected()Description copied from interface:Channelis connected.- Specified by:
isConnectedin interfaceChannel- Returns:
- connected
-
getLocalAddress
Description copied from interface:Endpointget local address.- Specified by:
getLocalAddressin interfaceEndpoint- Returns:
- local address.
-
hasAttribute
Description copied from interface:Channelhas attribute.- Specified by:
hasAttributein interfaceChannel- Parameters:
key- key.- Returns:
- has or has not.
-
send
Description copied from interface:Endpointsend message.- Specified by:
sendin interfaceEndpoint- Parameters:
message-- Throws:
RemotingException
-
getAttribute
Description copied from interface:Channelget attribute.- Specified by:
getAttributein interfaceChannel- Parameters:
key- key.- Returns:
- value.
-
setAttribute
Description copied from interface:Channelset attribute.- Specified by:
setAttributein interfaceChannel- Parameters:
key- key.value- value.
-
send
Description copied from interface:Endpointsend message.- Specified by:
sendin interfaceEndpoint- Parameters:
message-sent- already sent to socket?- Throws:
RemotingException
-
removeAttribute
Description copied from interface:Channelremove attribute.- Specified by:
removeAttributein interfaceChannel- Parameters:
key- key.
-
close
public void close()Description copied from interface:Endpointclose the channel. -
close
public void close(int timeout) Description copied from interface:EndpointGraceful close the channel. -
startClose
public void startClose()- Specified by:
startClosein interfaceEndpoint
-
isClosed
public boolean isClosed()Description copied from interface:Endpointis closed.
-