Class CassandraAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.cassandra.CassandraAutoConfiguration
@AutoConfiguration
@ConditionalOnClass(com.datastax.oss.driver.api.core.CqlSession.class)
@EnableConfigurationProperties(CassandraProperties.class)
public class CassandraAutoConfiguration
extends Object
Auto-configuration
for Cassandra.- Since:
- 1.3.0
- Author:
- Julien Dubois, Phillip Webb, EddĂș MelĂ©ndez, Stephane Nicoll, Steffen F. Qvistgaard, Ittay Stern, Moritz Halbritter, Andy Wilkinson, Phillip Webb, Scott Frederick
-
Method Summary
Modifier and TypeMethodDescriptioncom.datastax.oss.driver.api.core.config.DriverConfigLoader
cassandraDriverConfigLoader
(CassandraConnectionDetails connectionDetails, ObjectProvider<DriverConfigLoaderBuilderCustomizer> builderCustomizers) com.datastax.oss.driver.api.core.CqlSession
cassandraSession
(com.datastax.oss.driver.api.core.CqlSessionBuilder cqlSessionBuilder) com.datastax.oss.driver.api.core.CqlSessionBuilder
cassandraSessionBuilder
(com.datastax.oss.driver.api.core.config.DriverConfigLoader driverConfigLoader, CassandraConnectionDetails connectionDetails, ObjectProvider<CqlSessionBuilderCustomizer> builderCustomizers, ObjectProvider<SslBundles> sslBundles)
-
Method Details
-
cassandraSession
@Bean @ConditionalOnMissingBean @Lazy public com.datastax.oss.driver.api.core.CqlSession cassandraSession(com.datastax.oss.driver.api.core.CqlSessionBuilder cqlSessionBuilder) -
cassandraSessionBuilder
@Bean @ConditionalOnMissingBean @Scope("prototype") public com.datastax.oss.driver.api.core.CqlSessionBuilder cassandraSessionBuilder(com.datastax.oss.driver.api.core.config.DriverConfigLoader driverConfigLoader, CassandraConnectionDetails connectionDetails, ObjectProvider<CqlSessionBuilderCustomizer> builderCustomizers, ObjectProvider<SslBundles> sslBundles) -
cassandraDriverConfigLoader
@Bean(destroyMethod="") @ConditionalOnMissingBean public com.datastax.oss.driver.api.core.config.DriverConfigLoader cassandraDriverConfigLoader(CassandraConnectionDetails connectionDetails, ObjectProvider<DriverConfigLoaderBuilderCustomizer> builderCustomizers)
-