Package | Description |
---|---|
com.datastax.dse.driver.api.core.config | |
com.datastax.oss.driver.api.core.config |
The configuration of the driver.
|
com.datastax.oss.driver.api.core.context | |
com.datastax.oss.driver.api.core.session |
Modifier and Type | Method and Description |
---|---|
static DriverConfigLoader |
DseDriverConfigLoader.fromClasspath(String resourceBaseName)
Deprecated.
This method only exists for backward compatibility. It delegates to
fromClasspath(String) , which you should call directly instead. |
static DriverConfigLoader |
DseDriverConfigLoader.fromFile(File file)
Deprecated.
This method only exists for backward compatibility. It delegates to
fromFile(File) , which you should call directly instead. |
static DriverConfigLoader |
DseDriverConfigLoader.fromUrl(URL url)
Deprecated.
This method only exists for backward compatibility. It delegates to
fromUrl(URL) , which you should call directly instead. |
Modifier and Type | Method and Description |
---|---|
DriverConfigLoader |
ProgrammaticDriverConfigLoaderBuilder.build() |
static DriverConfigLoader |
DriverConfigLoader.compose(DriverConfigLoader primaryConfigLoader,
DriverConfigLoader fallbackConfigLoader)
Composes two existing config loaders to form a new one.
|
static DriverConfigLoader |
DriverConfigLoader.fromClasspath(String resourceBaseName)
Builds an instance using the driver's default implementation (based on Typesafe config), except
that application-specific options are loaded from a classpath resource with a custom name.
|
static DriverConfigLoader |
DriverConfigLoader.fromClasspath(String resourceBaseName,
ClassLoader appClassLoader)
Just like
fromClasspath(java.lang.String) except that application-specific classpath
resources will be located using the provided ClassLoader instead of the current thread's context class loader. |
static DriverConfigLoader |
DriverConfigLoader.fromDefaults(ClassLoader appClassLoader)
Builds an instance using the driver's default implementation (based on Typesafe config) except
that application-specific classpath resources will be located using the provided
ClassLoader instead of the current thread's context
class loader. |
static DriverConfigLoader |
DriverConfigLoader.fromFile(File file)
Builds an instance using the driver's default implementation (based on Typesafe config), except
that application-specific options are loaded from the given file.
|
static DriverConfigLoader |
DriverConfigLoader.fromMap(OptionsMap source)
Builds an instance backed by an
OptionsMap , which holds all options in memory. |
static DriverConfigLoader |
DriverConfigLoader.fromPath(Path file)
Builds an instance using the driver's default implementation (based on Typesafe config), except
that application-specific options are loaded from the given path.
|
static DriverConfigLoader |
DriverConfigLoader.fromString(String contents)
Builds an instance using the driver's default implementation (based on Typesafe config), except
that application-specific options are parsed from the given string.
|
static DriverConfigLoader |
DriverConfigLoader.fromUrl(URL url)
Builds an instance using the driver's default implementation (based on Typesafe config), except
that application-specific options are loaded from the given URL.
|
Modifier and Type | Method and Description |
---|---|
static DriverConfigLoader |
DriverConfigLoader.compose(DriverConfigLoader primaryConfigLoader,
DriverConfigLoader fallbackConfigLoader)
Composes two existing config loaders to form a new one.
|
Modifier and Type | Method and Description |
---|---|
DriverConfigLoader |
DriverContext.getConfigLoader() |
Modifier and Type | Field and Description |
---|---|
protected DriverConfigLoader |
SessionBuilder.configLoader |
Modifier and Type | Method and Description |
---|---|
protected DriverConfigLoader |
SessionBuilder.defaultConfigLoader()
Deprecated.
|
protected DriverConfigLoader |
SessionBuilder.defaultConfigLoader(ClassLoader classLoader) |
Modifier and Type | Method and Description |
---|---|
protected DriverContext |
SessionBuilder.buildContext(DriverConfigLoader configLoader,
List<TypeCodec<?>> typeCodecs,
NodeStateListener nodeStateListener,
SchemaChangeListener schemaChangeListener,
RequestTracker requestTracker,
Map<String,String> localDatacenters,
Map<String,Predicate<Node>> nodeFilters,
ClassLoader classLoader)
Deprecated.
this method only exists for backward compatibility (if a subclass written for
driver 4.1.0 returns a non-null result, that value will be used). Please override
SessionBuilder.buildContext(DriverConfigLoader, ProgrammaticArguments) instead. |
protected DriverContext |
SessionBuilder.buildContext(DriverConfigLoader configLoader,
ProgrammaticArguments programmaticArguments)
This must return an instance of
InternalDriverContext (it's not expressed
directly in the signature to avoid leaking that type through the protected API). |
SelfT |
SessionBuilder.withConfigLoader(DriverConfigLoader configLoader)
Sets the configuration loader to use.
|
Copyright © 2017–2022. All rights reserved.