|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.alibaba.dubbo.remoting.transport.AbstractPeer
com.alibaba.dubbo.remoting.transport.AbstractEndpoint
com.alibaba.dubbo.remoting.transport.AbstractServer
public abstract class AbstractServer
AbstractServer
Constructor Summary | |
---|---|
AbstractServer(URL url,
ChannelHandler handler)
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.alibaba.dubbo.remoting.transport.AbstractEndpoint |
---|
reset |
Methods inherited from class com.alibaba.dubbo.remoting.transport.AbstractPeer |
---|
caught, getChannelHandler, getDelegateHandler, getHandler, getUrl, isClosed, isClosing, received, send, sent, startClose |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.alibaba.dubbo.remoting.Server |
---|
getChannel, getChannels, isBound, reset |
Methods inherited from interface com.alibaba.dubbo.remoting.Endpoint |
---|
getChannelHandler, getUrl, isClosed, send, startClose |
Constructor Detail |
---|
public AbstractServer(URL url, ChannelHandler handler) throws RemotingException
RemotingException
Method Detail |
---|
public void reset(URL url)
Resetable
reset
in interface Resetable
reset
in class AbstractEndpoint
public void send(Object message, boolean sent) throws RemotingException
Endpoint
send
in interface Endpoint
sent
- 是否已发送完成
RemotingException
public void close()
Endpoint
close
in interface Endpoint
close
in class AbstractPeer
public void close(int timeout)
Endpoint
close
in interface Endpoint
close
in class AbstractPeer
public InetSocketAddress getLocalAddress()
Endpoint
getLocalAddress
in interface Endpoint
public InetSocketAddress getBindAddress()
public int getAccepts()
public int getIdleTimeout()
public void connected(Channel ch) throws RemotingException
ChannelHandler
connected
in interface ChannelHandler
connected
in class AbstractPeer
ch
- channel.
RemotingException
public void disconnected(Channel ch) throws RemotingException
ChannelHandler
disconnected
in interface ChannelHandler
disconnected
in class AbstractPeer
ch
- channel.
RemotingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |