use of org.springframework.cloud.service.column.CassandraClusterConfig in project spring-cloud-connectors by spring-cloud.
the class CassandraClusterConfigWithServiceConfig method testClusterFactoryWithConfig.
@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);
}
Aggregations