@Bean(name = "my-service") public Cluster testClusterFactory() { return connectionFactory().cluster("my-service"); } }
@Bean(name = "my-service") public Cluster testClusterFactory() { return connectionFactory().cluster(); } }
@Bean(name = "my-service") public Cluster testClusterFactoryWithConfig() { CassandraClusterConfig config = new CassandraClusterConfig(); SocketOptions socketOptions = new SocketOptions(); socketOptions.setSendBufferSize(12345); config.setSocketOptions(socketOptions); return connectionFactory().cluster("my-service", config); } }