|
||||||||||
| 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, received, send, sent |
| 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 |
| Constructor Detail |
|---|
public AbstractServer(URL url,
ChannelHandler handler)
throws RemotingException
RemotingException| Method Detail |
|---|
public void reset(URL url)
Resetable
reset in interface Resetablereset in class AbstractEndpoint
public void send(Object message,
boolean sent)
throws RemotingException
Endpoint
send in interface Endpointsent - 是否已发送完成
RemotingExceptionpublic void close()
Endpoint
close in interface Endpointclose in class AbstractPeerpublic void close(int timeout)
Endpoint
close in interface Endpointclose in class AbstractPeerpublic InetSocketAddress getLocalAddress()
Endpoint
getLocalAddress in interface Endpointpublic InetSocketAddress getBindAddress()
public int getAccepts()
public int getIdleTimeout()
public void connected(Channel ch)
throws RemotingException
ChannelHandler
connected in interface ChannelHandlerconnected in class AbstractPeerch - channel.
RemotingException
public void disconnected(Channel ch)
throws RemotingException
ChannelHandler
disconnected in interface ChannelHandlerdisconnected in class AbstractPeerch - channel.
RemotingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||