public interface ConnectionFactory
| 限定符和类型 | 方法和说明 |
|---|---|
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
|
void |
init(ConnectionEventHandler connectionEventHandler)
Initialize the factory.
|
void |
registerUserProcessor(UserProcessor<?> processor)
Register User processor
|
void init(ConnectionEventHandler connectionEventHandler)
Connection createConnection(Url url) throws Exception
url - ExceptionConnection createConnection(String targetIP, int targetPort, int connectTimeout) throws Exception
targetIP - targetPort - connectTimeout - ExceptionConnection createConnection(String targetIP, int targetPort, byte version, int connectTimeout) throws Exception
targetIP - targetPort - version - connectTimeout - Exceptionvoid registerUserProcessor(UserProcessor<?> processor)
processor - Copyright © 2018. All rights reserved.