PriorityStrandGetScheduler Method

Gets a TaskScheduler used to queue tasks at a specific priority.

Definition

Namespace: Gemstone.Threading.Strands
Assembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.128 -- Release Build+d4a9a653be1def5888b9be91bb1825c8655f3529
public TaskScheduler GetScheduler(
	int priority
)

Parameters

priority  Int32
The priority at which tasks should be queued by the returned TaskScheduler. Higher numbers are higher in priority!

Return Value

TaskScheduler
A TaskScheduler that queues tasks into the strand at the given priority.

Remarks

For a strand with n priorities, it is recommended to use priority levels between 0 and n-1 inclusive.

Exceptions

ArgumentExceptionpriority is less than zero

See Also