Package app.ductape.sdk.database.types
Record Class TriggerTypes.TriggerActionResult
java.lang.Object
java.lang.Record
app.ductape.sdk.database.types.TriggerTypes.TriggerActionResult
- Enclosing class:
- TriggerTypes
-
Constructor Summary
ConstructorsConstructorDescriptionTriggerActionResult(String action, boolean success, Object result, String error, long duration, Integer retries) Creates an instance of aTriggerActionResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.longduration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.result()Returns the value of theresultrecord component.retries()Returns the value of theretriesrecord component.booleansuccess()Returns the value of thesuccessrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TriggerActionResult
public TriggerActionResult(String action, boolean success, Object result, String error, long duration, Integer retries) Creates an instance of aTriggerActionResultrecord class.- Parameters:
action- the value for theactionrecord componentsuccess- the value for thesuccessrecord componentresult- the value for theresultrecord componenterror- the value for theerrorrecord componentduration- the value for thedurationrecord componentretries- the value for theretriesrecord 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 '=='. -
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
success
public boolean success()Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
duration
public long duration()Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-
retries
Returns the value of theretriesrecord component.- Returns:
- the value of the
retriesrecord component
-