You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: centraldogma/src/test/java/com/linecorp/decaton/centraldogma/CentralDogmaPropertySupplierIntegrationTest.java
Copy file name to clipboardExpand all lines: docs/dynamic-property-configuration.adoc
+19-7Lines changed: 19 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
= Dynamic Property Configuration
2
2
:base_version: 9.0.0
3
3
:modules: centraldogma,processor
4
+
:toc:
4
5
5
6
== Property Supplier
6
7
Decaton provides some properties for you to configure how it processes tasks. These properties don't need to be hard-coded. Decaton lets you configure some of the properties so they can be loaded dynamically.
@@ -79,7 +80,7 @@ public class CentralDogmaSupplierMain {
79
80
}
80
81
----
81
82
82
-
== YAML Support
83
+
== Use YAML instead of JSON
83
84
84
85
You can store the property file in YAML as well as JSON.
85
86
Nothing changes in your code except the file‐name extension.
As with JSON, you cannot use nested structures in YAML.
113
-
Therefore, the following is not allowed:
112
+
Therefore, the following is NOT allowed:
114
113
115
114
[source,yaml]
116
115
----
117
-
# This is not supported.
116
+
# This style is not supported.
118
117
decaton:
119
118
partition:
120
119
concurrency: 8
@@ -143,7 +142,7 @@ Hence you should put supplier with higher priority before others.
143
142
----
144
143
145
144
146
-
== JSON Schema
145
+
== Validate your configuration file with JSON Schema
147
146
148
147
Decaton ships a set of https://json-schema.org/[JSON Schema] files that precisely describe every key available in `CentralDogmaPropertySupplier` including each key’s type and default value.
149
148
Leveraging these schemas in your configuration files gives you two immediate benefits:
@@ -157,6 +156,7 @@ Leveraging these schemas in your configuration files gives you two immediate ben
0 commit comments