public class NettyServer extends AbstractServer implements StatisticCallback
| 限定符和类型 | 字段和说明 |
|---|---|
protected NettyServerChannelManage |
channelManage |
codec, localAddress, remoteAddress, state, url| 构造器和说明 |
|---|
NettyServer(URL url,
MessageHandler messageHandler) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
void |
close(int timeout) |
URL |
getUrl() |
boolean |
isAvailable() |
boolean |
isBound() |
boolean |
isClosed() |
boolean |
open() |
Response |
request(Request request) |
String |
statisticCallback() |
getChannel, getChannels, getLocalAddress, getRemoteAddress, setCodec, setLocalAddress, setRemoteAddress, setUrlprotected NettyServerChannelManage channelManage
public NettyServer(URL url, MessageHandler messageHandler)
public Response request(Request request) throws TransportException
request 在接口中 ChannelTransportExceptionpublic boolean isAvailable()
isAvailable 在接口中 Channelpublic String statisticCallback()
statisticCallback 在接口中 StatisticCallbackCopyright © 2018. All rights reserved.