Class BlockchainProperties.Mempool

java.lang.Object
com.privatechain.spring.BlockchainProperties.Mempool
Enclosing class:
BlockchainProperties

public static class BlockchainProperties.Mempool extends Object
Mempool configuration properties, bound to blockchain.mempool.*.
Since:
1.0.0
  • Constructor Details

    • Mempool

      public Mempool()
  • Method Details

    • getTtl

      public Duration getTtl()
      Returns the transaction TTL duration.
      Returns:
      non-null, positive Duration
    • setTtl

      public void setTtl(Duration ttl)
      Sets the transaction TTL duration.
      Parameters:
      ttl - non-null, positive duration
      Throws:
      NullPointerException - if ttl is 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)