.NET API
JobLeaseRequest
Namespace Tracon · Assembly
Tracon.Abstractions.dllWhat a worker asks of IJobStore.LeaseAsync: who it is, how long the lease lasts, which lanes it serves and, optionally, a per-tenant ceiling.
public sealed record JobLeaseRequest : IEquatable<JobLeaseRequest>- Inheritance
- object ← JobLeaseRequest
- Implements
- IEquatable<JobLeaseRequest>
- Inherited Members
- object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”A record, so a new option is a new property with a default and not a new parameter on the interface method that every IJobStore implementation overrides.
Constructors
Section titled “Constructors”JobLeaseRequest()
Section titled “ JobLeaseRequest()”public JobLeaseRequest()Properties
Section titled “Properties”Gets the lanes the lease is restricted to (see JobLanes). null or empty applies no filter: a job from any lane may be leased.
public IReadOnlyList<string>? Lanes { get; init; }Property Value
Section titled “Property Value”LeaseDuration
Section titled “ LeaseDuration”Gets the lease’s validity duration.
public required TimeSpan LeaseDuration { get; init; }Property Value
Section titled “Property Value”Gets the leasing worker’s identifier.
public required string Owner { get; init; }Property Value
Section titled “Property Value”TenantCap
Section titled “ TenantCap”Gets the per-tenant ceiling, or null (the default) for none: the oldest ready job is leased whichever tenant it belongs to.
public JobTenantCap? TenantCap { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(JobLeaseRequest?)
Section titled “ Equals(JobLeaseRequest?)”public bool Equals(JobLeaseRequest? other)Parameters
Section titled “Parameters”other JobLeaseRequest?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(JobLeaseRequest?, JobLeaseRequest?)
Section titled “ operator ==(JobLeaseRequest?, JobLeaseRequest?)”public static bool operator ==(JobLeaseRequest? left, JobLeaseRequest? right)Parameters
Section titled “Parameters”left JobLeaseRequest?
right JobLeaseRequest?
Returns
Section titled “Returns”operator !=(JobLeaseRequest?, JobLeaseRequest?)
Section titled “ operator !=(JobLeaseRequest?, JobLeaseRequest?)”public static bool operator !=(JobLeaseRequest? left, JobLeaseRequest? right)Parameters
Section titled “Parameters”left JobLeaseRequest?
right JobLeaseRequest?