| 构造器和说明 |
|---|
ClientDelegate() |
ClientDelegate(Client client) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
close the channel.
|
void |
close(int timeout)
Graceful close the channel.
|
Object |
getAttribute(String key)
get attribute.
|
ChannelHandler |
getChannelHandler()
get channel handler.
|
Client |
getClient() |
InetSocketAddress |
getLocalAddress()
get local address.
|
InetSocketAddress |
getRemoteAddress()
get remote address.
|
URL |
getUrl()
get url.
|
boolean |
hasAttribute(String key)
has attribute.
|
boolean |
isClosed()
is closed.
|
boolean |
isConnected()
is connected.
|
void |
reconnect()
reconnect.
|
void |
removeAttribute(String key)
remove attribute.
|
void |
reset(Parameters parameters)
已过时。
|
void |
reset(URL url) |
void |
send(Object message)
send message.
|
void |
send(Object message,
boolean sent)
send message.
|
void |
setAttribute(String key,
Object value)
set attribute.
|
void |
setClient(Client client) |
void |
startClose() |
canHandleIdlepublic ClientDelegate()
public ClientDelegate(Client client)
public Client getClient()
public void setClient(Client client)
@Deprecated public void reset(Parameters parameters)
public InetSocketAddress getRemoteAddress()
ChannelgetRemoteAddress 在接口中 Channelpublic void reconnect()
throws RemotingException
Clientreconnect 在接口中 ClientRemotingExceptionpublic ChannelHandler getChannelHandler()
EndpointgetChannelHandler 在接口中 Endpointpublic boolean isConnected()
ChannelisConnected 在接口中 Channelpublic InetSocketAddress getLocalAddress()
EndpointgetLocalAddress 在接口中 Endpointpublic boolean hasAttribute(String key)
ChannelhasAttribute 在接口中 Channelkey - key.public void send(Object message) throws RemotingException
Endpointsend 在接口中 EndpointRemotingExceptionpublic Object getAttribute(String key)
ChannelgetAttribute 在接口中 Channelkey - key.public void setAttribute(String key, Object value)
ChannelsetAttribute 在接口中 Channelkey - key.value - value.public void send(Object message, boolean sent) throws RemotingException
Endpointsend 在接口中 Endpointsent - already sent to socket?RemotingExceptionpublic void removeAttribute(String key)
ChannelremoveAttribute 在接口中 Channelkey - key.public void close(int timeout)
Endpointpublic void startClose()
startClose 在接口中 EndpointCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.