Module io.hotmoka.node.mokamint.api
Package io.hotmoka.node.mokamint.api
Interface MokamintNodeConfigBuilder
- All Superinterfaces:
LocalNodeConfigBuilder<MokamintNodeConfig,MokamintNodeConfigBuilder>
public interface MokamintNodeConfigBuilder
extends LocalNodeConfigBuilder<MokamintNodeConfig,MokamintNodeConfigBuilder>
The builder of a configuration of a Mokamint node.
-
Method Summary
Modifier and TypeMethodDescriptionsetIndexingDepth(long indexingDepth) Sets the depth of the indexing, that is, the number of uppermost blocks for which indexing supporting data is maintained.setIndexingPause(long indexingPause) Sets the pausing time (in milliseconds) from an indexing iteration to the next indexing iteration.Methods inherited from interface io.hotmoka.node.local.api.LocalNodeConfigBuilder
build, setDir, setIndexSize, setMaxGasPerViewTransaction, setMaxPollingAttempts, setPollingDelay
-
Method Details
-
setIndexingDepth
Sets 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. A negative value means that supporting data is kept forever, it is never deleted, which protects completely from history changes.- Parameters:
indexingDepth- the depth of the indexing- Returns:
- this builder
-
setIndexingPause
Sets 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.- Parameters:
indexingPause- the pausing time, in milliseconds- Returns:
- this builder
-