Record Class PkiServerConfiguration.SigningReconciliation

java.lang.Object
java.lang.Record
zeroecho.pki.server.PkiServerConfiguration.SigningReconciliation
Record Components:
maximumRecords - maximum signing workflow records examined per pass
maximumProviderCalls - maximum provider calls issued per pass
passTimeout - maximum wall-clock duration of one reconciliation pass
providerCallTimeout - maximum duration of a single provider call
idleInterval - sleep duration between passes when there is no immediate work
Enclosing class:
PkiServerConfiguration

public static record PkiServerConfiguration.SigningReconciliation(int maximumRecords, int maximumProviderCalls, Duration passTimeout, Duration providerCallTimeout, Duration idleInterval) extends Record
Bounds for one signing-reconciliation pass executed by SigningReconciliationWorker.
  • Constructor Details

    • SigningReconciliation

      public SigningReconciliation(int maximumRecords, int maximumProviderCalls, Duration passTimeout, Duration providerCallTimeout, Duration idleInterval)
      Validates one reconciliation budget.
      Parameters:
      maximumRecords - number of records, from 1 to 4096
      maximumProviderCalls - provider calls, from 1 to maximumRecords
      passTimeout - positive duration no greater than five minutes
      providerCallTimeout - positive duration no greater than passTimeout
      idleInterval - positive duration no greater than five minutes
      Throws:
      NullPointerException - if a duration is null
      IllegalArgumentException - if a bound is exceeded
  • Method Details

    • defaults

      Returns the standard bounded reconciliation policy.
      Returns:
      a 256-record, 64-call budget with a 30-second pass timeout, 10-second provider timeout and 2-second idle interval
    • 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.
    • maximumRecords

      public int maximumRecords()
      Returns the value of the maximumRecords record component.
      Returns:
      the value of the maximumRecords record component
    • maximumProviderCalls

      public int maximumProviderCalls()
      Returns the value of the maximumProviderCalls record component.
      Returns:
      the value of the maximumProviderCalls record component
    • passTimeout

      public Duration passTimeout()
      Returns the value of the passTimeout record component.
      Returns:
      the value of the passTimeout record component
    • providerCallTimeout

      public Duration providerCallTimeout()
      Returns the value of the providerCallTimeout record component.
      Returns:
      the value of the providerCallTimeout record component
    • idleInterval

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