Interface MokamintNodeConfigBuilder

All Superinterfaces:
LocalNodeConfigBuilder<MokamintNodeConfig,MokamintNodeConfigBuilder>

public interface MokamintNodeConfigBuilder extends LocalNodeConfigBuilder<MokamintNodeConfig,MokamintNodeConfigBuilder>
The builder of a configuration of a Mokamint node.
  • Method Details

    • setIndexingDepth

      MokamintNodeConfigBuilder setIndexingDepth(long indexingDepth)
      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

      MokamintNodeConfigBuilder setIndexingPause(long indexingPause)
      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