Table of Contents

Method Create

Namespace
MailFathom.Application.Jobs.Execution
Assembly
MailFathom.Application.dll

Create(int, int, int)

States the capacity the queue runs under.

public static JobCapacitySettings Create(int maxConcurrentJobs, int maxConcurrentJobsPerType, int maxQueueDepthPerType)

Parameters

maxConcurrentJobs int

How many jobs this process may run at once, across every type together.

maxConcurrentJobsPerType int

How many jobs of one type this process may run at once.

maxQueueDepthPerType int

How many jobs of one type may be waiting before enqueuing expresses backpressure.

Returns

JobCapacitySettings

The validated capacity.

Exceptions

ArgumentOutOfRangeException

Thrown when a bound is not positive, or when maxConcurrentJobsPerType exceeds maxConcurrentJobs.