public class ServerDelegate extends Object implements RemotingServer
| 构造器和说明 |
|---|
ServerDelegate() |
ServerDelegate(RemotingServer 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.
|
RemotingServer |
getServer() |
URL |
getUrl()
get url.
|
boolean |
isBound()
is bound.
|
boolean |
isClosed()
is closed.
|
void |
reset(Parameters parameters)
已过时。
|
void |
reset(URL url) |
void |
send(Object message)
send message.
|
void |
send(Object message,
boolean sent)
send message.
|
void |
setServer(RemotingServer server) |
void |
startClose() |
canHandleIdlepublic ServerDelegate()
public ServerDelegate(RemotingServer server)
public RemotingServer getServer()
public void setServer(RemotingServer server)
public boolean isBound()
RemotingServerisBound 在接口中 RemotingServer@Deprecated public void reset(Parameters parameters)
reset 在接口中 RemotingServerpublic Collection<Channel> getChannels()
RemotingServergetChannels 在接口中 RemotingServerpublic Channel getChannel(InetSocketAddress remoteAddress)
RemotingServergetChannel 在接口中 RemotingServerpublic 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–2023 The Apache Software Foundation. All rights reserved.