接口 Channel
-
- 所有超级接口:
Endpoint
- 所有已知子接口:
Client
,ExchangeChannel
,ExchangeClient
- 所有已知实现类:
AbstractChannel
,AbstractClient
,ChannelDelegate
,ClientDelegate
,GrizzlyClient
,HeaderExchangeClient
,MinaClient
,NettyClient
,NettyClient
public interface Channel extends Endpoint
Channel. (API/SPI, Prototype, ThreadSafe)
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 Object
getAttribute(String key)
get attribute.InetSocketAddress
getRemoteAddress()
get remote address.boolean
hasAttribute(String key)
has attribute.boolean
isConnected()
is connected.void
removeAttribute(String key)
remove attribute.void
setAttribute(String key, Object value)
set attribute.-
从接口继承的方法 com.alibaba.dubbo.remoting.Endpoint
close, close, getChannelHandler, getLocalAddress, getUrl, isClosed, send, send, startClose
-
-
-
-
方法详细资料
-
getRemoteAddress
InetSocketAddress getRemoteAddress()
get remote address.- 返回:
- remote address.
-
isConnected
boolean isConnected()
is connected.- 返回:
- connected
-
hasAttribute
boolean hasAttribute(String key)
has attribute.- 参数:
key
- key.- 返回:
- has or has not.
-
setAttribute
void setAttribute(String key, Object value)
set attribute.- 参数:
key
- key.value
- value.
-
removeAttribute
void removeAttribute(String key)
remove attribute.- 参数:
key
- key.
-
-