Definition at line 26 of file NebulaPool.java.
◆ getActiveConnNum()
Get the number of connections was used by users.
- Returns
- the active connection number
Definition at line 160 of file NebulaPool.java.
◆ getIdleConnNum()
Get the number of free connections in the pool.
- Returns
- the idle connection number
Definition at line 170 of file NebulaPool.java.
◆ getSession()
get a session from the NebulaPool
- Parameters
-
userName | the userName to authenticate with nebula-graph |
password | the password to authenticate with nebula-graph |
reconnect | whether to retry after the connection is disconnected |
- Returns
- Session
- Exceptions
-
NotValidConnectionException | if get connection failed |
IOErrorException | if get unexpected exception |
AuthFailedException | if authenticate failed |
Definition at line 136 of file NebulaPool.java.
◆ getWaitersNum()
Get the number of waits in a waiting get connection.
- Returns
- the waiting connection number
Definition at line 180 of file NebulaPool.java.
◆ init()
- Parameters
-
addresses | the graphd services addresses |
config | the config for the pool |
- Returns
- boolean if all graph services are ok, return true,if some of them broken return false
- Exceptions
-
UnknownHostException | if host address is illegal |
InvalidConfigException | if config is illegal |
Definition at line 78 of file NebulaPool.java.
◆ returnConnection()
Return the connection to object pool.
- Parameters
-
connection | the return connection |
Definition at line 215 of file NebulaPool.java.
◆ setInvalidateConnection()
Set the connection is invalidate, and the object pool will destroy it.
- Parameters
-
connection | the invalidate connection |
Definition at line 201 of file NebulaPool.java.
The documentation for this class was generated from the following file: