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.110 -- Release Build+13c244059615c58a533059438f38d7e59ef0c2ea
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