Record Class EffectResult
java.lang.Object
java.lang.Record
com.kingsrook.qqq.backend.core.jobs.effects.EffectResult
public record EffectResult(EffectResult.Outcome outcome, String providerRef, String message)
extends Record
What a target's delivery attempt achieved.
- SENT: delivered (providerRef: the provider's id, if any).
- RETRY: definitely not delivered, try again later (e.g., 429/503 before the
request was accepted).
- FAILED: definitely not delivered, and retrying will not help (e.g., 400).
- UNKNOWN: it may have been delivered (a timeout after sending, a dropped
connection). Never treated as "not delivered".
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionEffectResult(EffectResult.Outcome outcome, String providerRef, String message) Creates an instance of aEffectResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static EffectResultNot delivered; do not retry.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.outcome()Returns the value of theoutcomerecord component.Returns the value of theproviderRefrecord component.static EffectResultNot delivered; retry later.static EffectResultDelivered.final StringtoString()Returns a string representation of this record class.static EffectResultMay or may not have been delivered.
-
Constructor Details
-
EffectResult
Creates an instance of aEffectResultrecord class.- Parameters:
outcome- the value for theoutcomerecord componentproviderRef- the value for theproviderRefrecord componentmessage- the value for themessagerecord component
-
-
Method Details
-
sent
Delivered. -
retry
Not delivered; retry later. -
failed
Not delivered; do not retry. -
unknown
May or may not have been delivered. -
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). -
outcome
Returns the value of theoutcomerecord component.- Returns:
- the value of the
outcomerecord component
-
providerRef
Returns the value of theproviderRefrecord component.- Returns:
- the value of the
providerRefrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-