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 AbstractCassandraConfiguration
cassandraConverter, cassandraManagedTypes, cassandraMappingContext, cassandraSessionFactory, cassandraTemplate, customConversions, getBeanClassLoader, getEntityBasePackages, getInitialEntitySet, getRequiredSessionFactory, getSchemaAction, keyspaceCleaner, keyspacePopulator, scriptOf, setBeanClassLoader, userTypeResolverMethods inherited from class AbstractSessionConfiguration
cassandraSession, cqlTemplate, getBeanFactory, getCompressionType, getContactPoints, getDriverConfigLoaderBuilderConfigurer, getDriverConfigurationResource, getKeyspaceCreations, getKeyspaceDrops, getKeyspaceName, getLocalDataCenter, getPort, getRequiredSession, getSessionBuilderConfigurer, getSessionName, 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.- Returns:
- the
ReactiveCassandraTemplate. - See Also:
-
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:
-