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