Click or drag to resize

ProcessQueueTCreateAsynchronousQueue(ProcessQueueTProcessItemFunctionSignature, ProcessQueueTCanProcessItemFunctionSignature, Double, Int32, Int32, Boolean, Boolean) Method

Creates a new asynchronous ProcessQueueT using specified settings.

Namespace: GSF.Collections
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.181-beta
Syntax
public static ProcessQueue<T> CreateAsynchronousQueue(
	ProcessQueueTProcessItemFunctionSignature processItemFunction,
	ProcessQueueTCanProcessItemFunctionSignature canProcessItemFunction,
	double processInterval,
	int maximumThreads,
	int processTimeout,
	bool requeueOnTimeout,
	bool requeueOnException
)
View Source

Parameters

processItemFunction  ProcessQueueTProcessItemFunctionSignature
Delegate that processes one item at a time.
canProcessItemFunction  ProcessQueueTCanProcessItemFunctionSignature
Delegate which determines whether an item can be processed.
processInterval  Double
a Double value which represents the process interval in milliseconds.
maximumThreads  Int32
An Int32 value that determines the maximum number of threads used to process items.
processTimeout  Int32
The number of seconds before a process should timeout.
requeueOnTimeout  Boolean
A Boolean value that indicates whether a process should requeue an item on timeout.
requeueOnException  Boolean
A Boolean value that indicates whether a process should requeue after an exception.

Return Value

ProcessQueueT
A ProcessQueue object based on type T.
See Also