@Configuration @EnableConfigurationProperties(value=CassandraClusterProperties.class) @Import(value=org.springframework.cloud.fn.consumer.cassandra.cluster.CassandraAppClusterConfiguration.CassandraPackageRegistrar.class) public class CassandraAppClusterConfiguration extends Object
Constructor and Description |
---|
CassandraAppClusterConfiguration() |
Modifier and Type | Method and Description |
---|---|
com.datastax.oss.driver.api.core.CqlSession |
cassandraSession(com.datastax.oss.driver.api.core.CqlSessionBuilder cqlSessionBuilder) |
org.springframework.boot.autoconfigure.cassandra.CqlSessionBuilderCustomizer |
clusterBuilderCustomizer(CassandraClusterProperties cassandraClusterProperties) |
Object |
keyspaceCreator(org.springframework.boot.autoconfigure.cassandra.CassandraProperties cassandraProperties,
com.datastax.oss.driver.api.core.CqlSessionBuilder cqlSessionBuilder) |
Object |
keyspaceInitializer(CassandraClusterProperties cassandraClusterProperties,
org.springframework.data.cassandra.core.ReactiveCassandraTemplate reactiveCassandraTemplate) |
@Bean public org.springframework.boot.autoconfigure.cassandra.CqlSessionBuilderCustomizer clusterBuilderCustomizer(CassandraClusterProperties cassandraClusterProperties)
@Bean @ConditionalOnProperty(value="cassandra.cluster.create-keyspace") public Object keyspaceCreator(org.springframework.boot.autoconfigure.cassandra.CassandraProperties cassandraProperties, com.datastax.oss.driver.api.core.CqlSessionBuilder cqlSessionBuilder)
@Bean @Lazy @DependsOn(value="keyspaceCreator") public com.datastax.oss.driver.api.core.CqlSession cassandraSession(com.datastax.oss.driver.api.core.CqlSessionBuilder cqlSessionBuilder)
@Bean @ConditionalOnProperty(value="cassandra.cluster.init-script") public Object keyspaceInitializer(CassandraClusterProperties cassandraClusterProperties, org.springframework.data.cassandra.core.ReactiveCassandraTemplate reactiveCassandraTemplate) throws IOException
IOException
Copyright © 2022. All rights reserved.