Record Class AfterTaskAttemptedEvent
java.lang.Object
java.lang.Record
org.apache.polaris.service.events.AfterTaskAttemptedEvent
- Record Components:
taskEntityId- The ID of the TaskEntity.callContext- The CallContext the task is being executed under.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 or not the attempt succeeded.
- All Implemented Interfaces:
PolarisEvent
public record AfterTaskAttemptedEvent(long taskEntityId, org.apache.polaris.core.context.CallContext callContext, int attempt, boolean success)
extends Record
implements PolarisEvent
Emitted after an attempt of an async task, such as manifest file cleanup, finishes.
-
Constructor Summary
ConstructorsConstructorDescriptionAfterTaskAttemptedEvent(long taskEntityId, org.apache.polaris.core.context.CallContext callContext, int attempt, boolean success) Creates an instance of aAfterTaskAttemptedEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintattempt()Returns the value of theattemptrecord component.org.apache.polaris.core.context.CallContextReturns the value of thecallContextrecord 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
-
AfterTaskAttemptedEvent
public AfterTaskAttemptedEvent(long taskEntityId, org.apache.polaris.core.context.CallContext callContext, int attempt, boolean success) Creates an instance of aAfterTaskAttemptedEventrecord class.- Parameters:
taskEntityId- the value for thetaskEntityIdrecord componentcallContext- the value for thecallContextrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
taskEntityId
public long taskEntityId()Returns the value of thetaskEntityIdrecord component.- Returns:
- the value of the
taskEntityIdrecord component
-
callContext
public org.apache.polaris.core.context.CallContext callContext()Returns the value of thecallContextrecord component.- Returns:
- the value of the
callContextrecord 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
-