/** * Get the {@link Cluster} object associated with the only Cassandra service bound to * the app. * * @return the Cassandra {@link Cluster} * @throws org.springframework.cloud.CloudException if there are either 0 or more than * 1 Cassandra database services. */ @Override public Cluster cluster() { return cluster((CassandraClusterConfig) null); }
/** * Get the {@link Cluster} object associated with the only Cassandra service bound to * the app. * * @return the Cassandra {@link Cluster} * @throws org.springframework.cloud.CloudException if there are either 0 or more than * 1 Cassandra database services. */ @Override public Cluster cluster() { return cluster((CassandraClusterConfig) null); }
/** * Get the {@link Cluster} object associated with the Cassandra {@code serviceId} * bound to the app. * * @param serviceId the Cassandra serviceId * @return the Cassandra {@link Cluster} * @throws org.springframework.cloud.CloudException if there is no service bound with * the {@code serviceId} */ @Override public Cluster cluster(String serviceId) { return cluster(serviceId, null); }
/** * Get the {@link Cluster} object associated with the Cassandra {@code serviceId} * bound to the app. * * @param serviceId the Cassandra serviceId * @return the Cassandra {@link Cluster} * @throws org.springframework.cloud.CloudException if there is no service bound with * the {@code serviceId} */ @Override public Cluster cluster(String serviceId) { return cluster(serviceId, null); }