Record Class PkiServerConfiguration.AuditProjection

java.lang.Object
java.lang.Record
zeroecho.pki.server.PkiServerConfiguration.AuditProjection
Record Components:
maximumRecords - maximum records examined per projection pass, from 1 through 4096
maximumSinkCalls - maximum sink calls per projection pass, from 1 through the record bound
idleInterval - positive polling delay, at most five minutes
Enclosing class:
PkiServerConfiguration

public static record PkiServerConfiguration.AuditProjection(int maximumRecords, int maximumSinkCalls, Duration idleInterval) extends Record
Bounded audit-projection policy, independently applied to revocation and each evidence family.
  • Constructor Details

    • AuditProjection

      public AuditProjection(int maximumRecords, int maximumSinkCalls, Duration idleInterval)
      Validates all projection bounds.
  • Method Details

    • defaults

      public static PkiServerConfiguration.AuditProjection defaults()
      Returns the current production defaults.
      Returns:
      256 records, 64 sink calls, and a two-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
    • maximumSinkCalls

      public int maximumSinkCalls()
      Returns the value of the maximumSinkCalls record component.
      Returns:
      the value of the maximumSinkCalls record component
    • idleInterval

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