接口 Transporter
-
@SPI("netty") public interface Transporter
Transporter. (SPI, Singleton, ThreadSafe)- 另请参阅:
Transporters
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 Server
bind(URL url, ChannelHandler handler)
Bind a server.Client
connect(URL url, ChannelHandler handler)
Connect to a server.
-
-
-
方法详细资料
-
bind
@Adaptive({"server","transporter"}) Server bind(URL url, ChannelHandler handler) throws RemotingException
Bind a server.- 参数:
url
- server urlhandler
-- 返回:
- server
- 抛出:
RemotingException
- 另请参阅:
Transporters.bind(URL, ChannelHandler...)
-
connect
@Adaptive({"client","transporter"}) Client connect(URL url, ChannelHandler handler) throws RemotingException
Connect to a server.- 参数:
url
- server urlhandler
-- 返回:
- client
- 抛出:
RemotingException
- 另请参阅:
Transporters.connect(URL, ChannelHandler...)
-
-