接口 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 EndpointEndpoint. (API/SPI, Prototype, ThreadSafe)
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voidclose()close the channel.voidclose(int timeout)Graceful close the channel.ChannelHandlergetChannelHandler()get channel handler.InetSocketAddressgetLocalAddress()get local address.URLgetUrl()get url.booleanisClosed()is closed.voidsend(Object message)send message.voidsend(Object message, boolean sent)send message.voidstartClose()
-
-
-
方法详细资料
-
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
-
-