public abstract class AbstractServer extends AbstractEndpoint implements RemotingServer
| 构造器和说明 |
|---|
AbstractServer(URL url,
ChannelHandler handler) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
close the channel.
|
void |
close(int timeout)
Graceful close the channel.
|
void |
connected(Channel ch)
on channel connected.
|
void |
disconnected(Channel ch)
on channel disconnected.
|
int |
getAccepts() |
InetSocketAddress |
getBindAddress() |
InetSocketAddress |
getLocalAddress()
get local address.
|
void |
reset(URL url) |
void |
send(Object message,
boolean sent)
send message.
|
resetcaught, getChannelHandler, getDelegateHandler, getHandler, getUrl, isClosed, isClosing, received, send, sent, startClosegetChannel, getChannels, isBound, resetgetChannelHandler, getUrl, isClosed, send, startClosecanHandleIdlepublic AbstractServer(URL url, ChannelHandler handler) throws RemotingException
public void reset(URL url)
reset 在接口中 Resetablereset 在类中 AbstractEndpointpublic void send(Object message, boolean sent) throws RemotingException
Endpointsend 在接口中 Endpointsent - already sent to socket?RemotingExceptionpublic void close()
Endpointclose 在接口中 Endpointclose 在类中 AbstractPeerpublic void close(int timeout)
Endpointclose 在接口中 Endpointclose 在类中 AbstractPeerpublic InetSocketAddress getLocalAddress()
EndpointgetLocalAddress 在接口中 Endpointpublic InetSocketAddress getBindAddress()
public int getAccepts()
public void connected(Channel ch) throws RemotingException
ChannelHandlerconnected 在接口中 ChannelHandlerconnected 在类中 AbstractPeerch - channel.RemotingExceptionpublic void disconnected(Channel ch) throws RemotingException
ChannelHandlerdisconnected 在接口中 ChannelHandlerdisconnected 在类中 AbstractPeerch - channel.RemotingExceptionCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.