Record Class AfterAttemptTaskEvent
java.lang.Object
java.lang.Record
org.apache.polaris.service.events.AfterAttemptTaskEvent
- Record Components:
taskEntityId- The ID of the TaskEntity.attempt- The attempt number. Each retry of the task will have its own attempt number. The initial (non-retried) attempt starts counting from 1.success- Whether the attempt succeeded.
- All Implemented Interfaces:
PolarisEvent
public record AfterAttemptTaskEvent(long taskEntityId, int attempt, boolean success)
extends Record
implements PolarisEvent
Emitted after an attempt of an async task, such as manifest file cleanup, finishes.
-
Constructor Summary
ConstructorsConstructorDescriptionAfterAttemptTaskEvent(long taskEntityId, int attempt, boolean success) Creates an instance of aAfterAttemptTaskEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintattempt()Returns the value of theattemptrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleansuccess()Returns the value of thesuccessrecord component.longReturns the value of thetaskEntityIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AfterAttemptTaskEvent
public AfterAttemptTaskEvent(long taskEntityId, int attempt, boolean success) Creates an instance of aAfterAttemptTaskEventrecord class.- Parameters:
taskEntityId- the value for thetaskEntityIdrecord componentattempt- the value for theattemptrecord componentsuccess- the value for thesuccessrecord 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. All components in this record class are compared with '=='. -
taskEntityId
public long taskEntityId()Returns the value of thetaskEntityIdrecord component.- Returns:
- the value of the
taskEntityIdrecord component
-
attempt
public int attempt()Returns the value of theattemptrecord component.- Returns:
- the value of the
attemptrecord component
-
success
public boolean success()Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-