Record Class CSCertificateTaskFailedAndRestart
java.lang.Object
java.lang.Record
com.io7m.certusine.vanilla.internal.tasks.CSCertificateTaskFailedAndRestart
- Record Components:
delayRequired- The delay required before retryingtask- The task to execute next
- All Implemented Interfaces:
CSCertificateTaskStatusType
public record CSCertificateTaskFailedAndRestart(OptionalLong delayRequired, CSCertificateTask task)
extends Record
implements CSCertificateTaskStatusType
The task failed, but might succeed if it is retried.
-
Constructor Summary
ConstructorsConstructorDescriptionCSCertificateTaskFailedAndRestart(OptionalLong delayRequired, CSCertificateTask task) The task failed, but might succeed if it is retried. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedelayRequiredrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleantask()Returns the value of thetaskrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CSCertificateTaskFailedAndRestart
The task failed, but might succeed if it is retried.- Parameters:
delayRequired- The delay required before retryingtask- The task to execute next
-
-
Method Details
-
isFailure
public boolean isFailure()- Specified by:
isFailurein interfaceCSCertificateTaskStatusType- Returns:
- The status is a failure
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
delayRequired
Returns the value of thedelayRequiredrecord component.- Specified by:
delayRequiredin interfaceCSCertificateTaskStatusType- Returns:
- the value of the
delayRequiredrecord component
-
task
-