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:
Aware,BeanClassLoaderAware,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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates aReactiveSessionobject.Creates aReactiveSessionFactoryto be used by theReactiveCassandraTemplate.Creates aCassandraAdminTemplate.Creates aReactiveCqlTemplateusing the configuredReactiveSessionFactory.voidsetBeanFactory(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, userTypeResolverMethods 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 aReactiveSessionobject. This wraps aCqlSessionto expose Cassandra access in a reactive style.- Returns:
- the
ReactiveSession. - See Also:
-
reactiveCassandraSessionFactory
Creates aReactiveSessionFactoryto be used by theReactiveCassandraTemplate. Uses theReactiveSessioninstance configured inreactiveCassandraSession().- Returns:
- the
ReactiveSessionFactory. - See Also:
-
reactiveCassandraTemplate
Creates aCassandraAdminTemplate. -
reactiveCqlTemplate
Creates aReactiveCqlTemplateusing the configuredReactiveSessionFactory.- Returns:
- the
ReactiveCqlOperations. - See Also:
-
setBeanFactory
Description copied from class:AbstractSessionConfigurationConfigures a reference to theBeanFactory.- Specified by:
setBeanFactoryin interfaceBeanFactoryAware- Overrides:
setBeanFactoryin classAbstractSessionConfiguration- Parameters:
beanFactory- reference to theBeanFactory.- Throws:
BeansException- if theBeanFactorycould not be initialized.- See Also:
-