public class GrizzlyServer extends AbstractServer
| 构造器和说明 |
|---|
GrizzlyServer(URL url,
ChannelHandler handler) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
connected(Channel ch)
on channel connected.
|
void |
disconnected(Channel ch)
on channel disconnected.
|
Channel |
getChannel(InetSocketAddress remoteAddress)
get channel.
|
Collection<Channel> |
getChannels()
get channels.
|
boolean |
isBound()
is bound.
|
close, close, getAccepts, getBindAddress, getIdleTimeout, getLocalAddress, reset, sendresetcaught, getChannelHandler, getDelegateHandler, getHandler, getUrl, isClosed, isClosing, received, send, sent, startClosegetChannelHandler, getUrl, isClosed, send, startClosepublic GrizzlyServer(URL url, ChannelHandler handler) throws RemotingException
public boolean isBound()
Serverpublic Collection<Channel> getChannels()
Serverpublic Channel getChannel(InetSocketAddress remoteAddress)
Serverpublic void connected(Channel ch) throws RemotingException
ChannelHandlerconnected 在接口中 ChannelHandlerconnected 在类中 AbstractServerch - channel.RemotingExceptionpublic void disconnected(Channel ch) throws RemotingException
ChannelHandlerdisconnected 在接口中 ChannelHandlerdisconnected 在类中 AbstractServerch - channel.RemotingExceptionCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.