Skip to content

Commit a91f9b6

Browse files
committed
Document that Cassandra policy classes must have a default constructor
Closes gh-14461
1 parent b5815b7 commit a91f9b6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cassandra/CassandraProperties.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public class CassandraProperties {
7474
private Compression compression = Compression.NONE;
7575

7676
/**
77-
* Class name of the load balancing policy.
77+
* Class name of the load balancing policy. The class must have a default constructor.
7878
*/
7979
private Class<? extends LoadBalancingPolicy> loadBalancingPolicy;
8080

@@ -94,12 +94,12 @@ public class CassandraProperties {
9494
private int fetchSize = QueryOptions.DEFAULT_FETCH_SIZE;
9595

9696
/**
97-
* Reconnection policy class.
97+
* Class name of the reconnection policy. The class must have a default constructor.
9898
*/
9999
private Class<? extends ReconnectionPolicy> reconnectionPolicy;
100100

101101
/**
102-
* Class name of the retry policy.
102+
* Class name of the retry policy. The class must have a default constructor.
103103
*/
104104
private Class<? extends RetryPolicy> retryPolicy;
105105

spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -558,13 +558,13 @@ content into your application; rather pick only the properties that you need.
558558
spring.data.cassandra.contact-points=localhost # Comma-separated list of cluster node addresses.
559559
spring.data.cassandra.fetch-size= # Queries default fetch size.
560560
spring.data.cassandra.keyspace-name= # Keyspace name to use.
561-
spring.data.cassandra.load-balancing-policy= # Class name of the load balancing policy.
561+
spring.data.cassandra.load-balancing-policy= # Class name of the load balancing policy. The class must have a default constructor.
562562
spring.data.cassandra.port= # Port of the Cassandra server.
563563
spring.data.cassandra.password= # Login password of the server.
564564
spring.data.cassandra.read-timeout-millis= # Socket option: read time out.
565-
spring.data.cassandra.reconnection-policy= # Reconnection policy class.
565+
spring.data.cassandra.reconnection-policy= # Class name of the reconnection policy. The class must have a default constructor.
566566
spring.data.cassandra.repositories.enabled= # Enable Cassandra repositories.
567-
spring.data.cassandra.retry-policy= # Class name of the retry policy.
567+
spring.data.cassandra.retry-policy= # Class name of the retry policy. The class must have a default constructor.
568568
spring.data.cassandra.serial-consistency-level= # Queries serial consistency level.
569569
spring.data.cassandra.schema-action=none # Schema action to take at startup.
570570
spring.data.cassandra.ssl=false # Enable SSL support.

0 commit comments

Comments
 (0)