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