Class DefaultReactiveSessionFactory
java.lang.Object
org.springframework.data.cassandra.core.cql.session.DefaultReactiveSessionFactory
- All Implemented Interfaces:
ReactiveSessionFactory
Default implementation of
ReactiveSessionFactory.
This implementation returns always the same ReactiveSession.
- Since:
- 2.0
- Author:
- Mark Paluch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<ReactiveSession>Return aReactiveSessionto be used directly or inside a callback insideReactiveCqlTemplate.
-
Constructor Details
-
DefaultReactiveSessionFactory
Create a newReactiveRowMapperResultSetExtractor.- Parameters:
session- theReactiveSessionprovides connections to Cassandra, must not be null.
-
-
Method Details
-
getSession
Description copied from interface:ReactiveSessionFactoryReturn aReactiveSessionto be used directly or inside a callback insideReactiveCqlTemplate.- Specified by:
getSessionin interfaceReactiveSessionFactory- Returns:
- a
ReactiveSession.
-