接口 Endpoint
-
- 所有已知子接口:
Channel
,Client
,ExchangeChannel
,ExchangeClient
,ExchangePeer
,ExchangeServer
,Peer
,Server
- 所有已知实现类:
AbstractChannel
,AbstractClient
,AbstractEndpoint
,AbstractPeer
,AbstractServer
,ChannelDelegate
,ClientDelegate
,ExchangeServerDelegate
,ExchangeServerPeer
,GrizzlyClient
,GrizzlyServer
,HeaderExchangeClient
,HeaderExchangeServer
,MinaClient
,MinaServer
,NettyClient
,NettyClient
,NettyServer
,NettyServer
,ServerDelegate
,ServerPeer
public interface Endpoint
Endpoint. (API/SPI, Prototype, ThreadSafe)
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 void
close()
close the channel.void
close(int timeout)
Graceful close the channel.ChannelHandler
getChannelHandler()
get channel handler.InetSocketAddress
getLocalAddress()
get local address.URL
getUrl()
get url.boolean
isClosed()
is closed.void
send(Object message)
send message.void
send(Object message, boolean sent)
send message.void
startClose()
-
-
-
方法详细资料
-
getUrl
URL getUrl()
get url.- 返回:
- url
-
getChannelHandler
ChannelHandler getChannelHandler()
get channel handler.- 返回:
- channel handler
-
getLocalAddress
InetSocketAddress getLocalAddress()
get local address.- 返回:
- local address.
-
send
void send(Object message) throws RemotingException
send message.- 参数:
message
-- 抛出:
RemotingException
-
send
void send(Object message, boolean sent) throws RemotingException
send message.- 参数:
message
-sent
- already sent to socket?- 抛出:
RemotingException
-
close
void close()
close the channel.
-
close
void close(int timeout)
Graceful close the channel.
-
startClose
void startClose()
-
isClosed
boolean isClosed()
is closed.- 返回:
- closed
-
-