public class RpcConnectionFactory extends Object implements ConnectionFactory
| 构造器和说明 |
|---|
RpcConnectionFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
Connection |
createConnection(String targetIP,
int targetPort,
byte version,
int connectTimeout)
Create a connection according to the IP and port.
|
Connection |
createConnection(String targetIP,
int targetPort,
int connectTimeout)
Create a connection according to the IP and port.
|
Connection |
createConnection(Url url)
Create a connection use #BoltUrl
|
protected io.netty.channel.ChannelFuture |
doCreateConnection(String targetIP,
int targetPort,
int connectTimeout) |
void |
init(ConnectionEventHandler connectionEventHandler)
Initialize the factory.
|
void |
registerUserProcessor(UserProcessor<?> processor)
Register User processor
|
public void init(ConnectionEventHandler connectionEventHandler)
ConnectionFactoryinit 在接口中 ConnectionFactoryConnectionFactory.init(ConnectionEventHandler)public Connection createConnection(Url url) throws Exception
ConnectionFactorypublic Connection createConnection(String targetIP, int targetPort, int connectTimeout) throws Exception
ConnectionFactorypublic Connection createConnection(String targetIP, int targetPort, byte version, int connectTimeout) throws Exception
ConnectionFactorycreateConnection 在接口中 ConnectionFactoryExceptionConnectionFactory.createConnection(String, int, byte, int)protected io.netty.channel.ChannelFuture doCreateConnection(String targetIP, int targetPort, int connectTimeout) throws Exception
targetIP - targetPort - connectTimeout - Exceptionpublic void registerUserProcessor(UserProcessor<?> processor)
ConnectionFactoryCopyright © 2018. All rights reserved.