Record Class BeforeTaskAttemptedEvent
java.lang.Object
java.lang.Record
org.apache.polaris.service.events.BeforeTaskAttemptedEvent
- Record Components:
taskEntityId- The ID of the TaskEntitycallContext- 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.
- All Implemented Interfaces:
PolarisEvent
public record BeforeTaskAttemptedEvent(long taskEntityId, org.apache.polaris.core.context.CallContext callContext, int attempt)
extends Record
implements PolarisEvent
Emitted before an attempt of an async task, such as manifest file cleanup, begins.
-
Constructor Summary
ConstructorsConstructorDescriptionBeforeTaskAttemptedEvent(long taskEntityId, org.apache.polaris.core.context.CallContext callContext, int attempt) Creates an instance of aBeforeTaskAttemptedEventrecord 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.longReturns the value of thetaskEntityIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BeforeTaskAttemptedEvent
public BeforeTaskAttemptedEvent(long taskEntityId, org.apache.polaris.core.context.CallContext callContext, int attempt) Creates an instance of aBeforeTaskAttemptedEventrecord class.- Parameters:
taskEntityId- the value for thetaskEntityIdrecord componentcallContext- the value for thecallContextrecord componentattempt- the value for theattemptrecord 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
-