public interface CosmosDriverOption
extends com.datastax.oss.driver.api.core.config.DriverOption
This class includes methods for getting and parsing option values, including default values. This interface is
implemented by CosmosLoadBalancingPolicyOption and CosmosRetryPolicyOption.
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getDefaultValue(Class<T> type)
Returns the default value of this
Cosmos driver option. |
String |
getName()
Returns the name this
Cosmos driver option. |
<T> T |
getValue(com.datastax.oss.driver.api.core.config.DriverExecutionProfile profile,
Class<T> type)
Gets the value for this
Cosmos driver option from the given driver execution profile. |
<T> T |
parse(String value,
Class<T> type)
Parses a value for this
Cosmos driver option. |
@NonNull String getName()
Cosmos driver option.Cosmos driver option.@NonNull
<T> T getDefaultValue(@NonNull
Class<T> type)
Cosmos driver option.T - The class of values for this Cosmos driver option.type - The class of values for this Cosmos driver option.Cosmos driver option.@NonNull
<T> T getValue(@NonNull
com.datastax.oss.driver.api.core.config.DriverExecutionProfile profile,
@NonNull
Class<T> type)
Cosmos driver option from the given driver execution profile.T - The class of values for this Cosmos driver option.profile - A driver execution profile from which to get the value.type - The class of values for this Cosmos driver option.Cosmos driver option.@NonNull
<T> T parse(@Nullable
String value,
@NonNull
Class<T> type)
Cosmos driver option.T - The class of values for this Cosmos driver option.value - A string value to parse.type - The class of values for this Cosmos driver option.Cosmos driver option.Copyright © 2021. All rights reserved.