Record Class BzstDipQueryResultConfiguration
java.lang.Object
java.lang.Record
software.xdev.bzst.dip.client.model.configuration.BzstDipQueryResultConfiguration
- Record Components:
delayBeforeCheckingResults- Defines the initial delay after the data is sent and the result is queried.
Defaults toBzstDipConfigurationBuilder.DEFAULT_DELAY_BEFORE_CHECKING_RESULTS_IN_MILLIS.retryQueryResultsAmount- Defines how many times the result is queried until it stops and fails.
Defaults toBzstDipConfigurationBuilder.DEFAULT_RETRY_QUERY_RESULTS.delayInBetweenResultChecks- Defines the delay between each request for a result.
Defaults toBzstDipConfigurationBuilder.DEFAULT_DELAY_IN_BETWEEN_RESULTS_CHECKS_IN_MILLIS.
-
Constructor Summary
ConstructorsConstructorDescriptionBzstDipQueryResultConfiguration(Duration delayBeforeCheckingResults, int retryQueryResultsAmount, Duration delayInBetweenResultChecks) Creates an instance of aBzstDipQueryResultConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedelayBeforeCheckingResultsrecord component.Returns the value of thedelayInBetweenResultChecksrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theretryQueryResultsAmountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BzstDipQueryResultConfiguration
public BzstDipQueryResultConfiguration(Duration delayBeforeCheckingResults, int retryQueryResultsAmount, Duration delayInBetweenResultChecks) Creates an instance of aBzstDipQueryResultConfigurationrecord class.- Parameters:
delayBeforeCheckingResults- the value for thedelayBeforeCheckingResultsrecord componentretryQueryResultsAmount- the value for theretryQueryResultsAmountrecord componentdelayInBetweenResultChecks- the value for thedelayInBetweenResultChecksrecord component
-
-
Method Details
-
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. -
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. -
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 '=='. -
delayBeforeCheckingResults
Returns the value of thedelayBeforeCheckingResultsrecord component.- Returns:
- the value of the
delayBeforeCheckingResultsrecord component
-
retryQueryResultsAmount
public int retryQueryResultsAmount()Returns the value of theretryQueryResultsAmountrecord component.- Returns:
- the value of the
retryQueryResultsAmountrecord component
-
delayInBetweenResultChecks
Returns the value of thedelayInBetweenResultChecksrecord component.- Returns:
- the value of the
delayInBetweenResultChecksrecord component
-