Search in sources :

Example 1 with ReactiveSessionFactory

use of org.springframework.data.cassandra.ReactiveSessionFactory in project spring-data-cassandra by spring-projects.

the class ReactiveCqlTemplate method getSession.

private Mono<ReactiveSession> getSession() {
    ReactiveSessionFactory sessionFactory = getSessionFactory();
    Assert.state(sessionFactory != null, "SessionFactory is null");
    return sessionFactory.getSession();
}
Also used : ReactiveSessionFactory(org.springframework.data.cassandra.ReactiveSessionFactory) DefaultReactiveSessionFactory(org.springframework.data.cassandra.core.cql.session.DefaultReactiveSessionFactory)

Aggregations

ReactiveSessionFactory (org.springframework.data.cassandra.ReactiveSessionFactory)1 DefaultReactiveSessionFactory (org.springframework.data.cassandra.core.cql.session.DefaultReactiveSessionFactory)1