| Constructor and Description |
|---|
ServerDelegate() |
ServerDelegate(Server server) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
close the channel.
|
void |
close(int timeout)
Graceful close the channel.
|
Channel |
getChannel(InetSocketAddress remoteAddress)
get channel.
|
ChannelHandler |
getChannelHandler()
get channel handler.
|
Collection<Channel> |
getChannels()
get channels.
|
InetSocketAddress |
getLocalAddress()
get local address.
|
Server |
getServer() |
URL |
getUrl()
get url.
|
boolean |
isBound()
is bound.
|
boolean |
isClosed()
is closed.
|
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 |
setServer(Server server) |
void |
startClose() |
public ServerDelegate()
public ServerDelegate(Server server)
public Server getServer()
public void setServer(Server server)
public boolean isBound()
Server@Deprecated public void reset(Parameters parameters)
public Collection<Channel> getChannels()
ServergetChannels in interface Serverpublic Channel getChannel(InetSocketAddress remoteAddress)
ServergetChannel in interface Serverpublic ChannelHandler getChannelHandler()
EndpointgetChannelHandler in interface Endpointpublic InetSocketAddress getLocalAddress()
EndpointgetLocalAddress in interface Endpointpublic void send(Object message) throws RemotingException
Endpointsend in interface EndpointRemotingExceptionpublic void send(Object message, boolean sent) throws RemotingException
Endpointsend in interface Endpointsent - already sent to socket?RemotingExceptionpublic void close()
Endpointpublic void close(int timeout)
Endpointpublic void startClose()
startClose in interface EndpointCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.