Class ServerDelegate
java.lang.Object
org.apache.dubbo.remoting.transport.ServerDelegate
- All Implemented Interfaces:
Resetable,Endpoint,IdleSensible,RemotingServer
ServerDelegate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()close the channel.voidclose(int timeout) Graceful close the channel.getChannel(InetSocketAddress remoteAddress) get channel.get channel handler.get channels.get local address.getUrl()get url.booleanisBound()is bound.booleanisClosed()is closed.voidreset(Parameters parameters) Deprecated.voidvoidsend message.voidsend message.voidsetServer(RemotingServer server) voidMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.dubbo.remoting.IdleSensible
canHandleIdle
-
Constructor Details
-
ServerDelegate
public ServerDelegate() -
ServerDelegate
-
-
Method Details
-
getServer
-
setServer
-
isBound
public boolean isBound()Description copied from interface:RemotingServeris bound.- Specified by:
isBoundin interfaceRemotingServer- Returns:
- bound
-
reset
-
reset
Deprecated.- Specified by:
resetin interfaceRemotingServer
-
getChannels
Description copied from interface:RemotingServerget channels.- Specified by:
getChannelsin interfaceRemotingServer- Returns:
- channels
-
getChannel
Description copied from interface:RemotingServerget channel.- Specified by:
getChannelin interfaceRemotingServer- Parameters:
remoteAddress-- Returns:
- channel
-
getUrl
Description copied from interface:Endpointget url. -
getChannelHandler
Description copied from interface:Endpointget channel handler.- Specified by:
getChannelHandlerin interfaceEndpoint- Returns:
- channel handler
-
getLocalAddress
Description copied from interface:Endpointget local address.- Specified by:
getLocalAddressin interfaceEndpoint- Returns:
- local address.
-
send
Description copied from interface:Endpointsend message.- Specified by:
sendin interfaceEndpoint- Parameters:
message-- Throws:
RemotingException
-
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. -
close
public void close(int timeout) Description copied from interface:EndpointGraceful close the channel. -
startClose
public void startClose()- Specified by:
startClosein interfaceEndpoint
-
isClosed
public boolean isClosed()Description copied from interface:Endpointis closed.
-