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.160 -- Release Build+5c02decbb6aa321138caaadf548ee87ad464d811
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