public class NettyServer extends AbstractServer implements RemotingServer
| 构造器和说明 |
|---|
NettyServer(URL url,
ChannelHandler handler) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
canHandleIdle()
Whether the implementation can sense and handle the idle connection.
|
Channel |
getChannel(InetSocketAddress remoteAddress)
get channel.
|
Collection<Channel> |
getChannels()
get channels.
|
boolean |
isBound()
is bound.
|
close, close, connected, disconnected, getAccepts, getBindAddress, getLocalAddress, reset, sendresetcaught, getChannelHandler, getDelegateHandler, getHandler, getUrl, isClosed, isClosing, received, send, sent, startCloseresetclose, close, getChannelHandler, getLocalAddress, getUrl, isClosed, send, send, startClosepublic NettyServer(URL url, ChannelHandler handler) throws RemotingException
public Collection<Channel> getChannels()
RemotingServergetChannels 在接口中 RemotingServerpublic Channel getChannel(InetSocketAddress remoteAddress)
RemotingServergetChannel 在接口中 RemotingServerpublic boolean canHandleIdle()
IdleSensiblecanHandleIdle 在接口中 IdleSensiblepublic boolean isBound()
RemotingServerisBound 在接口中 RemotingServerCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.