Record Class EnrollmentRuntimeConfiguration.Budgets

java.lang.Object
java.lang.Record
zeroecho.pki.server.enrollment.EnrollmentRuntimeConfiguration.Budgets
Record Components:
maximumTransactions - retained transactions including tombstones, 1..1000000
maximumPending - pending transactions, at most the retained count
maximumRetainedRequestBytes - retained original bytes plus serialized metadata and reserved bounded decision/receipt/result growth
maximumRequestBytes - one encoded request, 1..1048576 bytes
maximumConcurrentDispatches - concurrent dispatches, 1..1024
pendingLifetime - fixed admission lifetime, at most 30 days
retryAfter - polling interval, at most the pending lifetime
Enclosing class:
EnrollmentRuntimeConfiguration

public static record EnrollmentRuntimeConfiguration.Budgets(int maximumTransactions, int maximumPending, long maximumRetainedRequestBytes, int maximumRequestBytes, int maximumConcurrentDispatches, Duration pendingLifetime, Duration retryAfter) extends Record
Explicit transaction budgets, including terminal replay records.
  • Constructor Details

    • Budgets

      public Budgets(int maximumTransactions, int maximumPending, long maximumRetainedRequestBytes, int maximumRequestBytes, int maximumConcurrentDispatches, Duration pendingLifetime, Duration retryAfter)
      Validates exact positive budgets and their relationships.
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • maximumTransactions

      public int maximumTransactions()
      Returns the value of the maximumTransactions record component.
      Returns:
      the value of the maximumTransactions record component
    • maximumPending

      public int maximumPending()
      Returns the value of the maximumPending record component.
      Returns:
      the value of the maximumPending record component
    • maximumRetainedRequestBytes

      public long maximumRetainedRequestBytes()
      Returns the value of the maximumRetainedRequestBytes record component.
      Returns:
      the value of the maximumRetainedRequestBytes record component
    • maximumRequestBytes

      public int maximumRequestBytes()
      Returns the value of the maximumRequestBytes record component.
      Returns:
      the value of the maximumRequestBytes record component
    • maximumConcurrentDispatches

      public int maximumConcurrentDispatches()
      Returns the value of the maximumConcurrentDispatches record component.
      Returns:
      the value of the maximumConcurrentDispatches record component
    • pendingLifetime

      public Duration pendingLifetime()
      Returns the value of the pendingLifetime record component.
      Returns:
      the value of the pendingLifetime record component
    • retryAfter

      public Duration retryAfter()
      Returns the value of the retryAfter record component.
      Returns:
      the value of the retryAfter record component