Module io.hotmoka.node.mokamint.api
Package io.hotmoka.node.mokamint.api
Interface MokamintNodeConfig
- All Superinterfaces:
LocalNodeConfig<MokamintNodeConfig,MokamintNodeConfigBuilder>
public interface MokamintNodeConfig
extends LocalNodeConfig<MokamintNodeConfig,MokamintNodeConfigBuilder>
The configuration of a Mokamint node.
-
Method Summary
Modifier and TypeMethodDescriptionlongYields the depth of the indexing, that is, the number of uppermost blocks for which indexing supporting data is maintained.longYields the pausing time (in milliseconds) from an indexing iteration to the next indexing iteration.Methods inherited from interface io.hotmoka.node.local.api.LocalNodeConfig
equals, getDir, getIndexSize, getMaxGasPerViewTransaction, getMaxPollingAttempts, getPollingDelay, toBuilder, toString, toToml
-
Method Details
-
getIndexingDepth
long getIndexingDepth()Yields the depth of the indexing, that is, the number of uppermost blocks for which indexing supporting data is maintained. The larger this number, the more resilient is indexing to large history changes, but higher is its computational cost and database usage.- Returns:
- the indexing depth; a negative value means that supporting data is kept forever, it is never deleted, which protects completely from history changes
-
getIndexingPause
long getIndexingPause()Yields the pausing time (in milliseconds) from an indexing iteration to the next indexing iteration. Reducing this number will make indexing more reactive to changes in the store, at an increased computational cost.- Returns:
- the pausing time, in milliseconds
-