Package org.apache.dubbo.remoting
Interface Channel
- All Superinterfaces:
Endpoint
- All Known Subinterfaces:
Client
,ExchangeChannel
,ExchangeClient
- All Known Implementing Classes:
AbstractChannel
,AbstractClient
,AbstractConnectionClient
,ChannelDelegate
,ClientDelegate
,HeaderExchangeClient
Channel. (API/SPI, Prototype, ThreadSafe)
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String key) get attribute.get remote address.boolean
hasAttribute
(String key) has attribute.boolean
is connected.void
removeAttribute
(String key) remove attribute.void
setAttribute
(String key, Object value) set attribute.Methods inherited from interface org.apache.dubbo.remoting.Endpoint
close, close, getChannelHandler, getLocalAddress, getUrl, isClosed, send, send, startClose
-
Method Details
-
getRemoteAddress
InetSocketAddress getRemoteAddress()get remote address.- Returns:
- remote address.
-
isConnected
boolean isConnected()is connected.- Returns:
- connected
-
hasAttribute
has attribute.- Parameters:
key
- key.- Returns:
- has or has not.
-
getAttribute
get attribute.- Parameters:
key
- key.- Returns:
- value.
-
setAttribute
set attribute.- Parameters:
key
- key.value
- value.
-
removeAttribute
remove attribute.- Parameters:
key
- key.
-