NebulaGraph Java Client 5.0.0
Loading...
Searching...
No Matches
NebulaPool Class Reference
+ Inheritance diagram for NebulaPool:
+ Collaboration diagram for NebulaPool:

Classes

class  Builder
 

Public Member Functions

NebulaClient getClient () throws Exception
 get NebulaClient from pool
 
void returnClient (NebulaClient client)
 return the client to object pool
 
void close ()
 
int getActiveSessions ()
 get the active sessions of NebulaClient
 
int getIdleSessions ()
 get the idle sessions of NebulaClient
 
int getWaiters ()
 get the execute requests waiting to get session
 

Static Public Member Functions

static NebulaPool.Builder builder (String addresses, String userName)
 
static NebulaPool.Builder builder (String addresses, String userName, String password)
 

Detailed Description

Definition at line 22 of file NebulaPool.java.

Member Function Documentation

◆ builder() [1/2]

static NebulaPool.Builder builder ( String  addresses,
String  userName 
)
static

Definition at line 32 of file NebulaPool.java.

◆ builder() [2/2]

static NebulaPool.Builder builder ( String  addresses,
String  userName,
String  password 
)
static

Definition at line 36 of file NebulaPool.java.

◆ close()

void close ( )

Definition at line 102 of file NebulaPool.java.

◆ getActiveSessions()

int getActiveSessions ( )

get the active sessions of NebulaClient

Returns
number of sessions which are being used

Definition at line 112 of file NebulaPool.java.

◆ getClient()

NebulaClient getClient ( ) throws Exception

get NebulaClient from pool

Definition at line 80 of file NebulaPool.java.

◆ getIdleSessions()

int getIdleSessions ( )

get the idle sessions of NebulaClient

Returns
number of sessions which are idle

Definition at line 121 of file NebulaPool.java.

◆ getWaiters()

int getWaiters ( )

get the execute requests waiting to get session

Returns
number of execute requests waiting to get session

Definition at line 130 of file NebulaPool.java.

◆ returnClient()

void returnClient ( NebulaClient  client)

return the client to object pool

Parameters
clientNebulaClient

Definition at line 89 of file NebulaPool.java.


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