public class SessionPool extends Object
Constructor and Description |
---|
SessionPool() |
Modifier and Type | Method and Description |
---|---|
static com.datastax.driver.core.Session |
get(CassandraSessionImpl cassandraSes)
Extracts Cassandra driver session from pool.
|
static void |
put(CassandraSessionImpl cassandraSes,
com.datastax.driver.core.Session driverSes,
long expirationTimeout)
Returns Cassandra driver session to sessions pool.
|
static void |
release()
Releases all session from pool and closes all their connections to Cassandra database.
|
public static void put(CassandraSessionImpl cassandraSes, com.datastax.driver.core.Session driverSes, long expirationTimeout)
cassandraSes
- Session wrapper.driverSes
- Driver session.public static com.datastax.driver.core.Session get(CassandraSessionImpl cassandraSes)
cassandraSes
- Session wrapper.public static void release()
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024