-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CORE-16879 - new version for flow config
- Loading branch information
1 parent
60a3f80
commit cb44ddb
Showing
2 changed files
with
102 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
98 changes: 98 additions & 0 deletions
98
.../config-schema/src/main/resources/net/corda/schema/configuration/flow/1.1/corda.flow.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"$id": "https://corda.r3.com/net/corda/schema/configuration/flow/1.0/corda.flow.json", | ||
"title": "Corda Flow Configuration Schema", | ||
"description": "Configuration schema for the flow section.", | ||
"type": "object", | ||
"default": {}, | ||
"properties": { | ||
"processing": { | ||
"description": "Settings for flow pipeline processing.", | ||
"type": "object", | ||
"default": {}, | ||
"properties": { | ||
"maxRetryWindowDuration": { | ||
"description": "The duration in milliseconds after a transient error that Corda retries a flow before failing it. A value of zero disables retries.", | ||
"type": "integer", | ||
"minimum": 0, | ||
"maximum": 2147483647, | ||
"default": 120000 | ||
}, | ||
"maxRetryDelay": { | ||
"description": "The maximum delay in milliseconds before Corda schedules a retry.", | ||
"type": "integer", | ||
"minimum": 1000, | ||
"maximum": 2147483647, | ||
"default": 16000 | ||
}, | ||
"maxFlowSleepDuration": { | ||
"description": "The maximum delay in milliseconds before Corda schedules a periodic wake-up.", | ||
"type": "integer", | ||
"minimum": 1000, | ||
"maximum": 2147483647, | ||
"default": 900000 | ||
}, | ||
"cleanupTime": { | ||
"description": "The length of time in milliseconds that the flow mapper holds onto its state for a flow that has finished. This value should be at least 2 times larger than the session.p2pTTL.", | ||
"type": "integer", | ||
"minimum": 1000, | ||
"maximum": 2147483647, | ||
"default": 600000 | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"session": { | ||
"description": "Settings for flow sessions.", | ||
"type": "object", | ||
"default": {}, | ||
"properties": { | ||
"timeout": { | ||
"description": "The length of time in milliseconds that Corda waits when no message has been received from a counterparty before causing the session to error.", | ||
"type": "integer", | ||
"minimum": 1000, | ||
"maximum": 2147483647, | ||
"default": 1800000 | ||
}, | ||
"p2pTTL": { | ||
"description": "The TTL set in milliseconds. This is added to the current time and set on messages passed to the P2P layer to send to a counterparty. Messages received with a TTL timestamp set in the past will be discarded.", | ||
"type": "integer", | ||
"minimum": 10000, | ||
"maximum": 2147483647, | ||
"default": 300000 | ||
}, | ||
"cleanupTime": { | ||
"description": "The length of time in milliseconds that the flow mapper holds onto its state for a session after the session has finished. This value should be at least 2 times larger than the session.p2pTTL", | ||
"type": "integer", | ||
"minimum": 10000, | ||
"maximum": 2147483647, | ||
"default": 600000 | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"event": { | ||
"description": "Settings for external events within a flow.", | ||
"type": "object", | ||
"default": {}, | ||
"properties": { | ||
"messageResendWindow": { | ||
"description": "The length of time in milliseconds that Corda waits before resending unprocessed external events.", | ||
"type": "integer", | ||
"minimum": 1000, | ||
"maximum": 2147483647, | ||
"default": 60000 | ||
}, | ||
"maxRetries": { | ||
"description": "The maximum number of times Corda retries a request before returning an exception.", | ||
"type": "integer", | ||
"minimum": 0, | ||
"maximum": 2147483647, | ||
"default": 5 | ||
} | ||
}, | ||
"additionalProperties": false | ||
} | ||
}, | ||
"additionalProperties": false | ||
} |