Class AbstractServer
java.lang.Object
org.apache.dubbo.remoting.transport.AbstractPeer
org.apache.dubbo.remoting.transport.AbstractEndpoint
org.apache.dubbo.remoting.transport.AbstractServer
- All Implemented Interfaces:
Resetable,ChannelHandler,Endpoint,IdleSensible,RemotingServer
- Direct Known Subclasses:
AbstractPortUnificationServer
AbstractServer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()close the channel.voidclose(int timeout) Graceful close the channel.voidon channel connected.voiddisconnected(Channel ch) on channel disconnected.intget local address.voidvoidsend message.Methods inherited from class org.apache.dubbo.remoting.transport.AbstractEndpoint
resetMethods inherited from class org.apache.dubbo.remoting.transport.AbstractPeer
caught, getChannelHandler, getDelegateHandler, getHandler, getUrl, isClosed, isClosing, received, send, sent, startCloseMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.dubbo.remoting.Endpoint
getChannelHandler, getUrl, isClosed, send, startCloseMethods inherited from interface org.apache.dubbo.remoting.IdleSensible
canHandleIdleMethods inherited from interface org.apache.dubbo.remoting.RemotingServer
getChannel, getChannels, isBound, reset
-
Constructor Details
-
AbstractServer
- Throws:
RemotingException
-
-
Method Details
-
reset
- Specified by:
resetin interfaceResetable- Overrides:
resetin classAbstractEndpoint
-
send
Description copied from interface:Endpointsend message.- Specified by:
sendin interfaceEndpoint- Parameters:
message-sent- already sent to socket?- Throws:
RemotingException
-
close
public void close()Description copied from interface:Endpointclose the channel.- Specified by:
closein interfaceEndpoint- Overrides:
closein classAbstractPeer
-
close
public void close(int timeout) Description copied from interface:EndpointGraceful close the channel.- Specified by:
closein interfaceEndpoint- Overrides:
closein classAbstractPeer
-
getLocalAddress
Description copied from interface:Endpointget local address.- Specified by:
getLocalAddressin interfaceEndpoint- Returns:
- local address.
-
getBindAddress
-
getAccepts
public int getAccepts() -
connected
Description copied from interface:ChannelHandleron channel connected.- Specified by:
connectedin interfaceChannelHandler- Overrides:
connectedin classAbstractPeer- Parameters:
ch- channel.- Throws:
RemotingException
-
disconnected
Description copied from interface:ChannelHandleron channel disconnected.- Specified by:
disconnectedin interfaceChannelHandler- Overrides:
disconnectedin classAbstractPeer- Parameters:
ch- channel.- Throws:
RemotingException
-