public abstract class AbstractServer extends AbstractEndpoint implements Server
| Constructor and Description |
|---|
AbstractServer(URL url,
ChannelHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
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() |
int |
getIdleTimeout() |
InetSocketAddress |
getLocalAddress()
get local address.
|
void |
reset(URL url)
reset.
|
void |
send(Object message,
boolean sent)
send message.
|
resetcaught, getChannelHandler, getDelegateHandler, getHandler, getUrl, isClosed, isClosing, received, send, sent, startCloseequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChannel, getChannels, isBound, resetgetChannelHandler, getUrl, isClosed, send, startClosepublic AbstractServer(URL url, ChannelHandler handler) throws RemotingException
RemotingExceptionpublic void reset(URL url)
Resetablereset in interface Resetablereset in class AbstractEndpointpublic void send(Object message, boolean sent) throws RemotingException
Endpointsend in interface Endpointsent - already sent to socket?RemotingExceptionpublic void close()
Endpointclose in interface Endpointclose in class AbstractPeerpublic void close(int timeout)
Endpointclose in interface Endpointclose in class AbstractPeerpublic InetSocketAddress getLocalAddress()
EndpointgetLocalAddress in interface Endpointpublic InetSocketAddress getBindAddress()
public int getAccepts()
public int getIdleTimeout()
public void connected(Channel ch) throws RemotingException
ChannelHandlerconnected in interface ChannelHandlerconnected in class AbstractPeerch - channel.RemotingExceptionpublic void disconnected(Channel ch) throws RemotingException
ChannelHandlerdisconnected in interface ChannelHandlerdisconnected in class AbstractPeerch - channel.RemotingExceptionCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.