@FunctionalInterface public interface SessionFactory
sessions.
A SessionFactory object is the preferred means of getting a connection. The SessionFactory interface
is implemented by a CqlSession provider.
A SessionFactory object can have properties that can be modified when necessary. For example, if the
CqlSession 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.CqlSession,
Session| 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. |
com.datastax.oss.driver.api.core.CqlSession getSession()
CqlSession with the connection infrastructure that this SessionFactory
object represents.CqlSession to Apache Cassandra.CqlSessionCopyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.