@ThreadSafe
public class DefaultDseDriverConfigLoader
extends com.datastax.oss.driver.internal.core.config.typesafe.DefaultDriverConfigLoader
Constructor and Description |
---|
DefaultDseDriverConfigLoader() |
DefaultDseDriverConfigLoader(Supplier<com.typesafe.config.Config> configSupplier)
Builds an instance with custom arguments, if you want to load the configuration from somewhere
else.
|
Modifier and Type | Method and Description |
---|---|
static com.datastax.oss.driver.internal.core.config.typesafe.DefaultDriverConfigLoaderBuilder |
builder()
Constructs a builder that may be used to provide additional configuration beyond those defined
in your configuration files programmatically.
|
public DefaultDseDriverConfigLoader()
public DefaultDseDriverConfigLoader(Supplier<com.typesafe.config.Config> configSupplier)
@NonNull public static com.datastax.oss.driver.internal.core.config.typesafe.DefaultDriverConfigLoaderBuilder builder()
DseSession session = DseSession.builder()
.withConfigLoader(DefaultDseDriverConfigLoader.builder()
.withDuration(DefaultDriverOption.REQUEST_TIMEOUT, Duration.ofMillis(500))
.build())
.build();
In the general case, use of this is not recommended, but it may be useful in situations where configuration must be defined at runtime or is derived from some other configuration source.
Copyright © 2017–2019. All rights reserved.