public abstract class AbstractReactiveCassandraConfiguration extends AbstractCassandraConfiguration
AbstractCassandraConfiguration providing Spring Data Cassandra configuration for Spring Data's
Reactive Cassandra support using JavaConfig.| Constructor and Description |
|---|
AbstractReactiveCassandraConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
ReactiveSession |
reactiveCassandraSession()
Creates a
ReactiveSession object. |
ReactiveSessionFactory |
reactiveCassandraSessionFactory()
Creates a
ReactiveSessionFactory to be used by the ReactiveCassandraTemplate. |
ReactiveCassandraTemplate |
reactiveCassandraTemplate()
Creates a
CassandraAdminTemplate. |
ReactiveCqlTemplate |
reactiveCqlTemplate()
Creates a
ReactiveCqlTemplate using the configured ReactiveSessionFactory. |
void |
setBeanFactory(BeanFactory beanFactory)
Configures a reference to the
BeanFactory. |
cassandraConverter, cassandraMapping, cassandraSessionFactory, cassandraTemplate, customConversions, getBeanClassLoader, getEntityBasePackages, getInitialEntitySet, getRequiredSessionFactory, getSchemaAction, keyspaceCleaner, keyspacePopulator, scriptOf, setBeanClassLoadercassandraSession, cqlTemplate, getBeanFactory, getClusterName, getCompressionType, getContactPoints, getDriverConfigLoaderBuilderConfigurer, getDriverConfigurationResource, getKeyspaceCreations, getKeyspaceDrops, getKeyspaceName, getLocalDataCenter, getPort, getRequiredSession, getSessionBuilderConfigurer, getSessionName, getShutdownScripts, getStartupScripts, requireBeanOfTypepublic AbstractReactiveCassandraConfiguration()
@Bean public ReactiveSession reactiveCassandraSession()
ReactiveSession object. This wraps a CqlSession to
expose Cassandra access in a reactive style.ReactiveSession.AbstractSessionConfiguration.cassandraSession(),
DefaultBridgedReactiveSession@Bean public ReactiveSessionFactory reactiveCassandraSessionFactory()
ReactiveSessionFactory to be used by the ReactiveCassandraTemplate. Uses the
ReactiveSession instance configured in reactiveCassandraSession().ReactiveSessionFactory.reactiveCassandraSession(),
reactiveCassandraTemplate()@Bean public ReactiveCassandraTemplate reactiveCassandraTemplate()
CassandraAdminTemplate.@Bean public ReactiveCqlTemplate reactiveCqlTemplate()
ReactiveCqlTemplate using the configured ReactiveSessionFactory.ReactiveCqlOperations.reactiveCassandraSessionFactory()public void setBeanFactory(BeanFactory beanFactory) throws BeansException
AbstractSessionConfigurationBeanFactory.setBeanFactory in interface BeanFactoryAwaresetBeanFactory in class AbstractSessionConfigurationbeanFactory - reference to the BeanFactory.BeansException - if the BeanFactory could not be initialized.BeanFactoryCopyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.