Record Class EffectRequest
java.lang.Object
java.lang.Record
com.kingsrook.qqq.backend.core.jobs.effects.EffectRequest
- Record Components:
idempotencyKey- jobId:chunkSeq:rowKey:effectName - send it as the provider's Idempotency-Key, use it for object names, upsert keys or the email Message-ID (see EffectKeys)effectName- the declared effect nameeffectType- how the effect is made safejobId- the job (null outside a job)chunkSeq- the chunk's sequence (null outside a job)rowKey- the row the effect is for (caller-chosen, stable)payload- the effect's data (small values)payloadRef- a reference to a larger stored payload, or nullattempt- 1 for the first delivery attempt
public record EffectRequest(String idempotencyKey, String effectName, JobEffectType effectType, Integer jobId, Integer chunkSeq, String rowKey, Map<String,Serializable> payload, String payloadRef, int attempt)
extends Record
One effect, as handed to its target for delivery or reconciliation.
-
Constructor Summary
ConstructorsConstructorDescriptionEffectRequest(String idempotencyKey, String effectName, JobEffectType effectType, Integer jobId, Integer chunkSeq, String rowKey, Map<String, Serializable> payload, String payloadRef, int attempt) Creates an instance of aEffectRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintattempt()Returns the value of theattemptrecord component.chunkSeq()Returns the value of thechunkSeqrecord component.Returns 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.Returns the value of theidempotencyKeyrecord component.jobId()Returns the value of thejobIdrecord component.payload()Returns the value of thepayloadrecord component.Returns the value of thepayloadRefrecord component.rowKey()Returns the value of therowKeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EffectRequest
public EffectRequest(String idempotencyKey, String effectName, JobEffectType effectType, Integer jobId, Integer chunkSeq, String rowKey, Map<String, Serializable> payload, String payloadRef, int attempt) Creates an instance of aEffectRequestrecord class.- Parameters:
idempotencyKey- the value for theidempotencyKeyrecord componenteffectName- the value for theeffectNamerecord componenteffectType- the value for theeffectTyperecord componentjobId- the value for thejobIdrecord componentchunkSeq- the value for thechunkSeqrecord componentrowKey- the value for therowKeyrecord componentpayload- the value for thepayloadrecord componentpayloadRef- the value for thepayloadRefrecord componentattempt- the value for theattemptrecord 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. -
idempotencyKey
Returns the value of theidempotencyKeyrecord component.- Returns:
- the value of the
idempotencyKeyrecord component
-
effectName
Returns the value of theeffectNamerecord component.- Returns:
- the value of the
effectNamerecord component
-
effectType
Returns the value of theeffectTyperecord component.- Returns:
- the value of the
effectTyperecord component
-
jobId
-
chunkSeq
-
rowKey
-
payload
-
payloadRef
Returns the value of thepayloadRefrecord component.- Returns:
- the value of the
payloadRefrecord component
-
attempt
-