Record Class TriggerStatus
java.lang.Object
java.lang.Record
org.chenile.trigger.model.TriggerStatus
public record TriggerStatus(String triggerId, String eventName, String status, int attempt, Instant triggerTime, Instant createdAt, Instant startedAt, Instant finishedAt, String error, String source, Map<String,Object> triggerContext, Object payload)
extends Record
Status and input metadata, never the event invocation output.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for theattemptrecord component.private final InstantThe field for thecreatedAtrecord component.private final StringThe field for theerrorrecord component.private final StringThe field for theeventNamerecord component.private final InstantThe field for thefinishedAtrecord component.private final ObjectThe field for thepayloadrecord component.private final StringThe field for thesourcerecord component.private final InstantThe field for thestartedAtrecord component.private final StringThe field for thestatusrecord component.The field for thetriggerContextrecord component.private final StringThe field for thetriggerIdrecord component.private final InstantThe field for thetriggerTimerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTriggerStatus(String triggerId, String eventName, String status, int attempt, Instant triggerTime, Instant createdAt, Instant startedAt, Instant finishedAt, String error, String source, Map<String, Object> triggerContext, Object payload) Creates an instance of aTriggerStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintattempt()Returns the value of theattemptrecord component.Returns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.Returns the value of theeventNamerecord component.Returns the value of thefinishedAtrecord component.final inthashCode()Returns a hash code value for this object.payload()Returns the value of thepayloadrecord component.source()Returns the value of thesourcerecord component.Returns the value of thestartedAtrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetriggerContextrecord component.Returns the value of thetriggerIdrecord component.Returns the value of thetriggerTimerecord component.
-
Field Details
-
triggerId
The field for thetriggerIdrecord component. -
eventName
The field for theeventNamerecord component. -
status
The field for thestatusrecord component. -
attempt
private final int attemptThe field for theattemptrecord component. -
triggerTime
The field for thetriggerTimerecord component. -
createdAt
The field for thecreatedAtrecord component. -
startedAt
The field for thestartedAtrecord component. -
finishedAt
The field for thefinishedAtrecord component. -
error
The field for theerrorrecord component. -
source
The field for thesourcerecord component. -
triggerContext
-
payload
The field for thepayloadrecord component.
-
-
Constructor Details
-
TriggerStatus
public TriggerStatus(String triggerId, String eventName, String status, int attempt, Instant triggerTime, Instant createdAt, Instant startedAt, Instant finishedAt, String error, String source, Map<String, Object> triggerContext, Object payload) Creates an instance of aTriggerStatusrecord class.- Parameters:
triggerId- the value for thetriggerIdrecord componenteventName- the value for theeventNamerecord componentstatus- the value for thestatusrecord componentattempt- the value for theattemptrecord componenttriggerTime- the value for thetriggerTimerecord componentcreatedAt- the value for thecreatedAtrecord componentstartedAt- the value for thestartedAtrecord componentfinishedAt- the value for thefinishedAtrecord componenterror- the value for theerrorrecord componentsource- the value for thesourcerecord componenttriggerContext- the value for thetriggerContextrecord componentpayload- the value for thepayloadrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
triggerId
Returns the value of thetriggerIdrecord component.- Returns:
- the value of the
triggerIdrecord component
-
eventName
Returns the value of theeventNamerecord component.- Returns:
- the value of the
eventNamerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
attempt
public int attempt()Returns the value of theattemptrecord component.- Returns:
- the value of the
attemptrecord component
-
triggerTime
Returns the value of thetriggerTimerecord component.- Returns:
- the value of the
triggerTimerecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
startedAt
Returns the value of thestartedAtrecord component.- Returns:
- the value of the
startedAtrecord component
-
finishedAt
Returns the value of thefinishedAtrecord component.- Returns:
- the value of the
finishedAtrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
triggerContext
-
payload
Returns the value of thepayloadrecord component.- Returns:
- the value of the
payloadrecord component
-
CHENILE