Class AbstractReactiveCassandraConfiguration
java.lang.Object
org.springframework.data.cassandra.config.AbstractSessionConfiguration
org.springframework.data.cassandra.config.AbstractCassandraConfiguration
org.springframework.data.cassandra.config.AbstractReactiveCassandraConfiguration
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.beans.factory.BeanFactoryAware
Extension to
AbstractCassandraConfiguration
providing Spring Data Cassandra configuration for Spring Data's
Reactive Cassandra support using JavaConfig.- Since:
- 2.0
- Author:
- Mark Paluch
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates aReactiveSession
object.Creates aReactiveSessionFactory
to be used by theReactiveCassandraTemplate
.Creates aCassandraAdminTemplate
.Creates aReactiveCqlTemplate
using the configuredReactiveSessionFactory
.void
setBeanFactory
(org.springframework.beans.factory.BeanFactory beanFactory) Configures a reference to theBeanFactory
.Methods inherited from class org.springframework.data.cassandra.config.AbstractCassandraConfiguration
cassandraConverter, cassandraManagedTypes, cassandraMapping, cassandraMappingContext, cassandraSessionFactory, cassandraTemplate, customConversions, getBeanClassLoader, getEntityBasePackages, getInitialEntitySet, getRequiredSessionFactory, getSchemaAction, keyspaceCleaner, keyspacePopulator, scriptOf, setBeanClassLoader, userTypeResolver
Methods inherited from class org.springframework.data.cassandra.config.AbstractSessionConfiguration
cassandraSession, cqlTemplate, getBeanFactory, getClusterName, getCompressionType, getContactPoints, getDriverConfigLoaderBuilderConfigurer, getDriverConfigurationResource, getKeyspaceCreations, getKeyspaceDrops, getKeyspaceName, getLocalDataCenter, getPort, getRequiredSession, getSessionBuilderConfigurer, getSessionName, getShutdownScripts, getStartupScripts, requireBeanOfType
-
Constructor Details
-
AbstractReactiveCassandraConfiguration
public AbstractReactiveCassandraConfiguration()
-
-
Method Details
-
reactiveCassandraSession
Creates aReactiveSession
object. This wraps aCqlSession
to expose Cassandra access in a reactive style.- Returns:
- the
ReactiveSession
. - See Also:
-
reactiveCassandraSessionFactory
Creates aReactiveSessionFactory
to be used by theReactiveCassandraTemplate
. Uses theReactiveSession
instance configured inreactiveCassandraSession()
.- Returns:
- the
ReactiveSessionFactory
. - See Also:
-
reactiveCassandraTemplate
Creates aCassandraAdminTemplate
. -
reactiveCqlTemplate
Creates aReactiveCqlTemplate
using the configuredReactiveSessionFactory
.- Returns:
- the
ReactiveCqlOperations
. - See Also:
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException Description copied from class:AbstractSessionConfiguration
Configures a reference to theBeanFactory
.- Specified by:
setBeanFactory
in interfaceorg.springframework.beans.factory.BeanFactoryAware
- Overrides:
setBeanFactory
in classAbstractSessionConfiguration
- Parameters:
beanFactory
- reference to theBeanFactory
.- Throws:
org.springframework.beans.BeansException
- if theBeanFactory
could not be initialized.- See Also:
-
BeanFactory
-