| Constructor and Description |
|---|
ClientDelegate() |
ClientDelegate(Client client) |
| Modifier and Type | Method and Description |
|---|---|
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)
Deprecated.
|
void |
reset(URL url)
reset.
|
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() |
public ClientDelegate()
public ClientDelegate(Client client)
public Client getClient()
public void setClient(Client client)
@Deprecated public void reset(Parameters parameters)
public InetSocketAddress getRemoteAddress()
ChannelgetRemoteAddress in interface Channelpublic void reconnect()
throws RemotingException
Clientreconnect in interface ClientRemotingExceptionpublic ChannelHandler getChannelHandler()
EndpointgetChannelHandler in interface Endpointpublic boolean isConnected()
ChannelisConnected in interface Channelpublic InetSocketAddress getLocalAddress()
EndpointgetLocalAddress in interface Endpointpublic boolean hasAttribute(String key)
ChannelhasAttribute in interface Channelkey - key.public void send(Object message) throws RemotingException
Endpointsend in interface EndpointRemotingExceptionpublic Object getAttribute(String key)
ChannelgetAttribute in interface Channelkey - key.public void setAttribute(String key, Object value)
ChannelsetAttribute in interface Channelkey - key.value - value.public void send(Object message, boolean sent) throws RemotingException
Endpointsend in interface Endpointsent - already sent to socket?RemotingExceptionpublic void removeAttribute(String key)
ChannelremoveAttribute in interface Channelkey - key.public void close()
Endpointpublic void close(int timeout)
Endpointpublic void startClose()
startClose in interface EndpointCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.