| 构造器和说明 |
|---|
ServerDelegate() |
ServerDelegate(Server server) |
| 限定符和类型 | 方法和说明 |
|---|---|
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)
已过时。
|
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)
@Deprecated public void reset(Parameters parameters)
public Collection<Channel> getChannels()
ServergetChannels 在接口中 Serverpublic Channel getChannel(InetSocketAddress remoteAddress)
ServergetChannel 在接口中 Serverpublic ChannelHandler getChannelHandler()
EndpointgetChannelHandler 在接口中 Endpointpublic InetSocketAddress getLocalAddress()
EndpointgetLocalAddress 在接口中 Endpointpublic void send(Object message) throws RemotingException
Endpointsend 在接口中 EndpointRemotingExceptionpublic void send(Object message, boolean sent) throws RemotingException
Endpointsend 在接口中 Endpointsent - already sent to socket?RemotingExceptionpublic void close(int timeout)
Endpointpublic void startClose()
startClose 在接口中 EndpointCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.