Record Class JobLevelEffect
java.lang.Object
java.lang.Record
com.kingsrook.qqq.backend.core.jobs.effects.JobLevelEffect
- Record Components:
effectName- e.g. "deliver"targetName- a target registered in DurableJobsMetaData.effectTargetseffectType- IDEMPOTENT_EXTERNAL or NON_IDEMPOTENT_EXTERNALrowKey- a stable key for this effect within the job (e.g., the destination id), part of the idempotency keypayload- small values for the targetpayloadRef- a reference to a larger stored payload, or null
public record JobLevelEffect(String effectName, String targetName, JobEffectType effectType, String rowKey, Map<String,Serializable> payload, String payloadRef)
extends Record
One job-level effect a JobCompletionEffects provider asks for.
-
Constructor Summary
ConstructorsConstructorDescriptionJobLevelEffect(String effectName, String targetName, JobEffectType effectType, String rowKey, Map<String, Serializable> payload, String payloadRef) Creates an instance of aJobLevelEffectrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theeffectNamerecord component.Returns the value of theeffectTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.payload()Returns the value of thepayloadrecord component.Returns the value of thepayloadRefrecord component.rowKey()Returns the value of therowKeyrecord component.Returns the value of thetargetNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JobLevelEffect
public JobLevelEffect(String effectName, String targetName, JobEffectType effectType, String rowKey, Map<String, Serializable> payload, String payloadRef) Creates an instance of aJobLevelEffectrecord class.- Parameters:
effectName- the value for theeffectNamerecord componenttargetName- the value for thetargetNamerecord componenteffectType- the value for theeffectTyperecord componentrowKey- the value for therowKeyrecord componentpayload- the value for thepayloadrecord componentpayloadRef- the value for thepayloadRefrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
effectName
Returns the value of theeffectNamerecord component.- Returns:
- the value of the
effectNamerecord component
-
targetName
Returns the value of thetargetNamerecord component.- Returns:
- the value of the
targetNamerecord component
-
effectType
Returns the value of theeffectTyperecord component.- Returns:
- the value of the
effectTyperecord component
-
rowKey
-
payload
-
payloadRef
Returns the value of thepayloadRefrecord component.- Returns:
- the value of the
payloadRefrecord component
-