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 init(ConnectionEventHandler connectionEventHandler)
Connection createConnection(Url url) throws Exception
url - target urlExceptionConnection createConnection(String targetIP, int targetPort, int connectTimeout) throws Exception
targetIP - target iptargetPort - target portconnectTimeout - connect timeout in millisecondExceptionConnection createConnection(String targetIP, int targetPort, byte version, int connectTimeout) throws Exception
targetIP - target iptargetPort - target portversion - protocol versionconnectTimeout - connect timeout in millisecondExceptionCopyright © 2021. All rights reserved.