类 ChannelDelegate
-
- com.alibaba.dubbo.remoting.transport.ChannelDelegate
-
-
构造器概要
构造器 构造器 说明 ChannelDelegate()
ChannelDelegate(Channel channel)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
close()
close the channel.void
close(int timeout)
Graceful close the channel.key)
get attribute.Channel
getChannel()
ChannelHandler
getChannelHandler()
get channel handler.getLocalAddress()
get local address.getRemoteAddress()
get remote address.URL
getUrl()
get url.boolean
key)
has attribute.boolean
isClosed()
is closed.boolean
isConnected()
is connected.void
key)
remove attribute.void
message)
send message.void
message, boolean sent)
send message.void
key, value)
set attribute.void
setChannel(Channel channel)
void
startClose()
-
-
-
构造器详细资料
-
ChannelDelegate
public ChannelDelegate()
-
ChannelDelegate
public ChannelDelegate(Channel channel)
-
-
方法详细资料
-
getChannel
public Channel getChannel()
-
setChannel
public void setChannel(Channel channel)
-
getRemoteAddress
public getRemoteAddress()
从接口复制的说明:Channel
get remote address.- 指定者:
getRemoteAddress
在接口中Channel
- 返回:
- remote address.
-
getChannelHandler
public ChannelHandler getChannelHandler()
从接口复制的说明:Endpoint
get channel handler.- 指定者:
getChannelHandler
在接口中Endpoint
- 返回:
- channel handler
-
isConnected
public boolean isConnected()
从接口复制的说明:Channel
is connected.- 指定者:
isConnected
在接口中Channel
- 返回:
- connected
-
getLocalAddress
public getLocalAddress()
从接口复制的说明:Endpoint
get local address.- 指定者:
getLocalAddress
在接口中Endpoint
- 返回:
- local address.
-
hasAttribute
public boolean hasAttribute( key)
从接口复制的说明:Channel
has attribute.- 指定者:
hasAttribute
在接口中Channel
- 参数:
key
- key.- 返回:
- has or has not.
-
send
public void send( message) throws RemotingException
从接口复制的说明:Endpoint
send message.- 指定者:
send
在接口中Endpoint
- 抛出:
RemotingException
-
getAttribute
public getAttribute( key)
从接口复制的说明:Channel
get attribute.- 指定者:
getAttribute
在接口中Channel
- 参数:
key
- key.- 返回:
- value.
-
setAttribute
public void setAttribute( key, value)
从接口复制的说明:Channel
set attribute.- 指定者:
setAttribute
在接口中Channel
- 参数:
key
- key.value
- value.
-
send
public void send( message, boolean sent) throws RemotingException
从接口复制的说明:Endpoint
send message.- 指定者:
send
在接口中Endpoint
sent
- already sent to socket?- 抛出:
RemotingException
-
removeAttribute
public void removeAttribute( key)
从接口复制的说明:Channel
remove attribute.- 指定者:
removeAttribute
在接口中Channel
- 参数:
key
- key.
-
close
public void close(int timeout)
从接口复制的说明:Endpoint
Graceful close the channel.
-
startClose
public void startClose()
- 指定者:
startClose
在接口中Endpoint
-
-