Package io.dapr.config
Class Property<T>
java.lang.Object
io.dapr.config.Property<T>
- Direct Known Subclasses:
BooleanProperty
,GenericProperty
,IntegerProperty
,MillisecondsDurationProperty
,StringProperty
A configuration property in the Dapr's SDK.
-
Method Summary
Modifier and TypeMethodDescriptionget()
Gets the value defined by system property first, then env variable or sticks to default.Gets the value defined by system property first, then env variable or sticks to default.Gets the environment variable's name.getName()
Gets the Java property's name.protected abstract T
Parses the value to the specific type.toString()
-
Method Details
-
getName
Gets the Java property's name.- Returns:
- Name.
-
toString
-
getEnvName
Gets the environment variable's name.- Returns:
- Name.
-
get
Gets the value defined by system property first, then env variable or sticks to default.- Returns:
- Value from system property (1st) or env variable (2nd) or default (last).
-
get
Gets the value defined by system property first, then env variable or sticks to default.- Parameters:
override
- overrides the property value- Returns:
- Value from system property (1st) or env variable (2nd) or default (last).
-
parse
Parses the value to the specific type.- Parameters:
value
- String value to be parsed.- Returns:
- Value in the specific type.
-