NebulaGraph Java Client  release-3.6
SessionsManager Class Reference
+ Inheritance diagram for SessionsManager:
+ Collaboration diagram for SessionsManager:

Public Member Functions

 SessionsManager (SessionsManagerConfig config)
 
synchronized SessionWrapper getSessionWrapper () throws RuntimeException, ClientServerIncompatibleException
 getSessionWrapper: return a SessionWrapper from sessionManager, the SessionWrapper couldn't use by multi-thread More...
 
synchronized void returnSessionWrapper (SessionWrapper session)
 returnSessionWrapper: return the SessionWrapper to the sessionManger, the old SessionWrapper couldn't use again. More...
 
synchronized void close ()
 close: release all sessions and close the connection pool
 

Detailed Description

Definition at line 19 of file SessionsManager.java.

Member Function Documentation

◆ getSessionWrapper()

synchronized SessionWrapper getSessionWrapper ( ) throws RuntimeException, ClientServerIncompatibleException

getSessionWrapper: return a SessionWrapper from sessionManager, the SessionWrapper couldn't use by multi-thread

Returns
SessionWrapper
Exceptions
RuntimeExceptionthe exception when get SessionWrapper

Definition at line 53 of file SessionsManager.java.

+ Here is the call graph for this function:

◆ returnSessionWrapper()

synchronized void returnSessionWrapper ( SessionWrapper  session)

returnSessionWrapper: return the SessionWrapper to the sessionManger, the old SessionWrapper couldn't use again.

Parameters
sessionThe SessionWrapper

Definition at line 98 of file SessionsManager.java.


The documentation for this class was generated from the following file: