Record Class PkiServerConfiguration.SigningReconciliation
java.lang.Object
java.lang.Record
zeroecho.pki.server.PkiServerConfiguration.SigningReconciliation
- Record Components:
maximumRecords- maximum signing workflow records examined per passmaximumProviderCalls- maximum provider calls issued per passpassTimeout- maximum wall-clock duration of one reconciliation passproviderCallTimeout- maximum duration of a single provider callidleInterval- sleep duration between passes when there is no immediate work
- Enclosing class:
PkiServerConfiguration
-
Constructor Summary
ConstructorsConstructorDescriptionSigningReconciliation(int maximumRecords, int maximumProviderCalls, Duration passTimeout, Duration providerCallTimeout, Duration idleInterval) Validates one reconciliation budget. -
Method Summary
Modifier and TypeMethodDescriptiondefaults()Returns the standard bounded reconciliation policy.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theidleIntervalrecord component.intReturns the value of themaximumProviderCallsrecord component.intReturns the value of themaximumRecordsrecord component.Returns the value of thepassTimeoutrecord component.Returns the value of theproviderCallTimeoutrecord component.final StringtoString()Returns a string representation of this record class.
-
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 4096maximumProviderCalls- provider calls, from 1 to maximumRecordspassTimeout- positive duration no greater than five minutesproviderCallTimeout- positive duration no greater than passTimeoutidleInterval- positive duration no greater than five minutes- Throws:
NullPointerException- if a duration is nullIllegalArgumentException- 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
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
maximumRecords
public int maximumRecords()Returns the value of themaximumRecordsrecord component.- Returns:
- the value of the
maximumRecordsrecord component
-
maximumProviderCalls
public int maximumProviderCalls()Returns the value of themaximumProviderCallsrecord component.- Returns:
- the value of the
maximumProviderCallsrecord component
-
passTimeout
Returns the value of thepassTimeoutrecord component.- Returns:
- the value of the
passTimeoutrecord component
-
providerCallTimeout
Returns the value of theproviderCallTimeoutrecord component.- Returns:
- the value of the
providerCallTimeoutrecord component
-
idleInterval
Returns the value of theidleIntervalrecord component.- Returns:
- the value of the
idleIntervalrecord component
-