Record Class EffectLease
java.lang.Object
java.lang.Record
com.kingsrook.qqq.backend.core.jobs.effects.EffectLease
- Record Components:
effectId- the jobs_effect idjobId- the effect's jobtoken- the lease tokenversion- the lease version this claim setreconcile- true when the effect was UNKNOWN (reconcile, don't deliver)
public record EffectLease(Integer effectId, Integer jobId, String token, int version, boolean reconcile)
extends Record
A dispatcher's hold on one effect while it delivers or reconciles it.
Every write that ends the hold is fenced on (id, leaseToken, leaseVersion).
-
Constructor Summary
ConstructorsConstructorDescriptionEffectLease(Integer effectId, Integer jobId, String token, int version, boolean reconcile) Creates an instance of aEffectLeaserecord class. -
Method Summary
Modifier and TypeMethodDescriptioneffectId()Returns the value of theeffectIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.jobId()Returns the value of thejobIdrecord component.booleanReturns the value of thereconcilerecord component.token()Returns the value of thetokenrecord component.final StringtoString()Returns a string representation of this record class.intversion()Returns the value of theversionrecord component.
-
Constructor Details
-
EffectLease
Creates an instance of aEffectLeaserecord class.
-
-
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. -
effectId
-
jobId
-
token
-
version
-
reconcile
-