Skip to content

Commit

Permalink
CORE-20027 - Added the configuration fields `dbTokensFetchMinInterval…
Browse files Browse the repository at this point in the history
…InMillis` and `dbTokensFetchMaxIntervalInMillis`. (#1595)
  • Loading branch information
filipesoliveira authored Apr 4, 2024
1 parent fc8854d commit 1f8d6dc
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ private LedgerConfig() {
public static final String UTXO_TOKEN_SEND_WAKEUP_MAX_RETRY_DELAY = "tokens.sendWakeUpMaxRetryDelay";
public static final String UTXO_TOKEN_CACHED_TOKEN_PAGE_SIZE = "tokens.cachedTokenPageSize";
public static final String UTXO_TOKEN_CLAIM_TIMEOUT_SECONDS = "tokens.claimTimeoutSeconds";
public static final String UTXO_TOKEN_CACHE_REFRESH_PERIOD_MILLISECONDS = "tokens.tokenCacheExpiryPeriodMilliseconds";
public static final String UTXO_TOKEN_CACHE_EXPIRY_PERIOD_MILLISECONDS = "tokens.tokenCacheExpiryPeriodMilliseconds";
public static final String UTXO_TOKEN_MIN_DB_BACKOFF_PERIOD_MILLISECONDS = "tokens.dbBackoffMinPeriodMilliseconds";
public static final String UTXO_TOKEN_MAX_DB_BACKOFF_PERIOD_MILLISECONDS = "tokens.dbBackoffMaxPeriodMilliseconds";
public static final String UTXO_BACKCHAIN_BATCH_SIZE = "backchain.batchSize";
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,18 @@
"type": "integer",
"minimum": 0,
"default": 600000
},
"dbBackoffMinPeriodMilliseconds": {
"description": "Minimum backoff period in milliseconds for db calls that do not fulfill a token claim request (default half second)",
"type": "integer",
"minimum": 1,
"default": 500
},
"dbBackoffMaxPeriodMilliseconds": {
"description": "Maximum backoff period in milliseconds for db calls that do not fulfill a token claim request (default 1 minute)",
"type": "integer",
"minimum": 1,
"default": 60000
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cordaProductVersion = 5.3.0
# NOTE: update this each time this module contains a breaking change
## NOTE: currently this is a top level revision, so all API versions will line up, but this could be moved to
## a per module property in which case module versions can change independently.
cordaApiRevision = 8
cordaApiRevision = 9

# Main
kotlin.stdlib.default.dependency = false
Expand Down

0 comments on commit 1f8d6dc

Please sign in to comment.