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 aReactiveSession
to be used directly or inside a callback insideReactiveCqlTemplate
.
-
Constructor Details
-
DefaultReactiveSessionFactory
Create a newReactiveRowMapperResultSetExtractor
.- Parameters:
session
- theReactiveSession
provides connections to Cassandra, must not be null.
-
-
Method Details
-
getSession
Description copied from interface:ReactiveSessionFactory
Return aReactiveSession
to be used directly or inside a callback insideReactiveCqlTemplate
.- Specified by:
getSession
in interfaceReactiveSessionFactory
- Returns:
- a
ReactiveSession
.
-