Class ServerDelegate
java.lang.Object
org.apache.dubbo.remoting.transport.ServerDelegate
- All Implemented Interfaces:
Resetable
,Endpoint
,IdleSensible
,RemotingServer
ServerDelegate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
close the channel.void
close
(int timeout) Graceful close the channel.getChannel
(InetSocketAddress remoteAddress) get channel.get channel handler.get channels.get local address.getUrl()
get url.boolean
isBound()
is bound.boolean
isClosed()
is closed.void
reset
(Parameters parameters) Deprecated.void
void
send message.void
send message.void
setServer
(RemotingServer server) void
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:RemotingServer
is bound.- Specified by:
isBound
in interfaceRemotingServer
- Returns:
- bound
-
reset
-
reset
Deprecated.- Specified by:
reset
in interfaceRemotingServer
-
getChannels
Description copied from interface:RemotingServer
get channels.- Specified by:
getChannels
in interfaceRemotingServer
- Returns:
- channels
-
getChannel
Description copied from interface:RemotingServer
get channel.- Specified by:
getChannel
in interfaceRemotingServer
- Parameters:
remoteAddress
-- Returns:
- channel
-
getUrl
Description copied from interface:Endpoint
get url. -
getChannelHandler
Description copied from interface:Endpoint
get channel handler.- Specified by:
getChannelHandler
in interfaceEndpoint
- Returns:
- channel handler
-
getLocalAddress
Description copied from interface:Endpoint
get local address.- Specified by:
getLocalAddress
in interfaceEndpoint
- Returns:
- local address.
-
send
Description copied from interface:Endpoint
send message.- Specified by:
send
in interfaceEndpoint
- Parameters:
message
-- Throws:
RemotingException
-
send
Description copied from interface:Endpoint
send message.- Specified by:
send
in interfaceEndpoint
- Parameters:
message
-sent
- already sent to socket?- Throws:
RemotingException
-
close
public void close()Description copied from interface:Endpoint
close the channel. -
close
public void close(int timeout) Description copied from interface:Endpoint
Graceful close the channel. -
startClose
public void startClose()- Specified by:
startClose
in interfaceEndpoint
-
isClosed
public boolean isClosed()Description copied from interface:Endpoint
is closed.
-