public class ServerDelegate extends Object implements RemotingServer
| Constructor and Description |
|---|
ServerDelegate() |
ServerDelegate(RemotingServer 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.
|
RemotingServer |
getServer() |
URL |
getUrl()
get url.
|
boolean |
isBound()
is bound.
|
boolean |
isClosed()
is closed.
|
void |
reset(Parameters parameters)
Deprecated.
|
void |
reset(URL url) |
void |
send(Object message)
send message.
|
void |
send(Object message,
boolean sent)
send message.
|
void |
setServer(RemotingServer server) |
void |
startClose() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanHandleIdlepublic ServerDelegate()
public ServerDelegate(RemotingServer server)
public RemotingServer getServer()
public void setServer(RemotingServer server)
public boolean isBound()
RemotingServerisBound in interface RemotingServer@Deprecated public void reset(Parameters parameters)
reset in interface RemotingServerpublic Collection<Channel> getChannels()
RemotingServergetChannels in interface RemotingServerpublic Channel getChannel(InetSocketAddress remoteAddress)
RemotingServergetChannel in interface RemotingServerpublic 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.