@FunctionalInterface public interface SessionFactory
An alternative to the Cluster facility, a SessionFactory object is the
preferred means of getting a connection. The SessionFactory interface is implemented by a Session
provider.
A SessionFactory object can have properties that can be modified when necessary. For example, if the
Session is moved to a different server, the property for the server can be changed. The benefit is that
because the data source's properties can be changed, any code accessing that SessionFactory does not need to
be changed.
| 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. |
com.datastax.driver.core.Session getSession()
Session with the connection infrastructure that this SessionFactory object
represents.Session to Apache Cassandra.Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.