- java.lang.Object
-
- io.hotmoka.local.Config
-
public class Config extends Object
The configuration of a node.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConfig.Builder<T extends Config.Builder<T>>The builder of a configuration object.
-
Field Summary
Fields Modifier and Type Field Description PathdirThe directory where the node's data will be persisted.BigIntegermaxGasPerViewTransactionThe maximal amount of gas that a view transaction can consume.intmaxPollingAttemptsThe maximal number of polling attempts, in milliseconds, while waiting for the result of a posted transaction.intpollingDelayThe delay of two subsequent polling attempts, in milliseconds, while waiting for the result of a posted transaction.intrequestCacheSizeThe size of the cache for theNode.getRequest(TransactionReference)method.intresponseCacheSizeThe size of the cache for theNode.getResponse(TransactionReference)method.
-
-
-
Field Detail
-
dir
public final Path dir
The directory where the node's data will be persisted. It defaults tochainin the current directory.
-
maxPollingAttempts
public final int maxPollingAttempts
The maximal number of polling attempts, in milliseconds, while waiting for the result of a posted transaction. It defaults to 60.
-
pollingDelay
public final int pollingDelay
The delay of two subsequent polling attempts, in milliseconds, while waiting for the result of a posted transaction. This delay is then increased by 10% at each subsequent attempt. It defaults to 10.
-
requestCacheSize
public final int requestCacheSize
The size of the cache for theNode.getRequest(TransactionReference)method. It defaults to 1,000.
-
responseCacheSize
public final int responseCacheSize
The size of the cache for theNode.getResponse(TransactionReference)method. It defaults to 1,000.
-
maxGasPerViewTransaction
public final BigInteger maxGasPerViewTransaction
The maximal amount of gas that a view transaction can consume. It defaults to 1_000_000.
-
-
Constructor Detail
-
Config
protected Config(Config parent)
Copy-constructor for subclassing.
-
-