Package com.privatechain.spring
Class BlockchainProperties.Mempool
java.lang.Object
com.privatechain.spring.BlockchainProperties.Mempool
- Enclosing class:
BlockchainProperties
Mempool configuration properties, bound to
blockchain.mempool.*.- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the maximum mempool size.getTtl()Returns the transaction TTL duration.voidsetMaxSize(int maxSize) Sets the maximum mempool size.voidSets the transaction TTL duration.
-
Constructor Details
-
Mempool
public Mempool()
-
-
Method Details
-
getTtl
Returns the transaction TTL duration.- Returns:
- non-null, positive
Duration
-
setTtl
Sets the transaction TTL duration.- Parameters:
ttl- non-null, positive duration- Throws:
NullPointerException- ifttlis null
-
getMaxSize
public int getMaxSize()Returns the maximum mempool size.- Returns:
- max transaction count (≥ 1)
-
setMaxSize
public void setMaxSize(int maxSize) Sets the maximum mempool size.- Parameters:
maxSize- max transaction count (≥ 1)
-