public class DefaultSessionFactory extends Object implements SessionFactory
SessionFactory implementation.
This class uses a singleton CqlSession and returns the same instances.
getSession(),
CqlSession| Constructor and Description |
|---|
DefaultSessionFactory(com.datastax.oss.driver.api.core.CqlSession session)
Constructs a new
DefaultSessionFactory given CqlSession. |
| Modifier and Type | Method and Description |
|---|---|
com.datastax.oss.driver.api.core.CqlSession |
getSession()
Attempts to establish a
CqlSession with the connection infrastructure that this SessionFactory
object represents. |
public DefaultSessionFactory(com.datastax.oss.driver.api.core.CqlSession session)
DefaultSessionFactory given CqlSession.session - the CqlSession to be used in getSession().public com.datastax.oss.driver.api.core.CqlSession getSession()
SessionFactoryCqlSession with the connection infrastructure that this SessionFactory
object represents.getSession in interface SessionFactoryCqlSession to Apache Cassandra.CqlSessionCopyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.