Skip to content

Commit d2e483b

Browse files
authored
CORE-19219: Add delivery tracker configuration (#1555)
* CORE-19219: Add delivery tracker configuration * Add units to the description * Change to float * Add max number of persistence * Use the correct version
1 parent ba22e1c commit d2e483b

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

data/config-schema/src/main/resources/net/corda/schema/configuration/p2p.linkManager/1.0/corda.p2p.linkManager.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,42 @@
166166
"minimum": 1
167167
}
168168
}
169+
},
170+
"deliveryTracker": {
171+
"type": "object",
172+
"default": {},
173+
"properties": {
174+
"maxCacheSizeMegabytes": {
175+
"description": "The maximum allowed size of the data message cache in megabytes.",
176+
"type": "integer",
177+
"default": 100,
178+
"minimum": 1
179+
},
180+
"maxCacheOffsetAge": {
181+
"description": "The oldest offset of a cached data message, relative to the last sent message offset (in number of records).",
182+
"type": "integer",
183+
"default": 50000,
184+
"minimum": 1
185+
},
186+
"maxNumberOfPersistenceRetries": {
187+
"description": "The maximum number of times to try to persist the states before giving up.",
188+
"type": "number",
189+
"default": 3,
190+
"minimum": 0
191+
},
192+
"statePersistencePeriodSeconds": {
193+
"description": "The maximum period, in seconds, between persisting the current state.",
194+
"type": "number",
195+
"default": 1,
196+
"minimum": 1
197+
},
198+
"outboundBatchProcessingTimeoutSeconds": {
199+
"description": "The maximum amount of time allowed to process a batch of outbound messages.",
200+
"type": "number",
201+
"default": 30,
202+
"minimum": 1
203+
}
204+
}
169205
}
170206
},
171207
"additionalProperties": false

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ cordaProductVersion = 5.3.0
55
# NOTE: update this each time this module contains a breaking change
66
## NOTE: currently this is a top level revision, so all API versions will line up, but this could be moved to
77
## a per module property in which case module versions can change independently.
8-
cordaApiRevision = 6
8+
cordaApiRevision = 7
99

1010
# Main
1111
kotlin.stdlib.default.dependency = false

0 commit comments

Comments
 (0)