use of org.springframework.boot.autoconfigure.cassandra.CassandraProperties.Controlconnection in project spring-boot by spring-projects.
the class CassandraAutoConfiguration method mapControlConnectionOptions.
private void mapControlConnectionOptions(CassandraProperties properties, CassandraDriverOptions options) {
PropertyMapper map = PropertyMapper.get().alwaysApplyingWhenNonNull();
Controlconnection controlProperties = properties.getControlconnection();
map.from(controlProperties::getTimeout).asInt(Duration::toMillis).to((timeout) -> options.add(DefaultDriverOption.CONTROL_CONNECTION_TIMEOUT, timeout));
}
Aggregations