|
ProcessQueueT(ProcessQueueTProcessItemsFunctionSignature, ProcessQueueTCanProcessItemFunctionSignature, Double, Int32, Int32, Boolean, Boolean) Constructor
|
Creates a bulk item
ProcessQueueT based on the generic List(Of T) class.
Namespace: GSF.CollectionsAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax new :
processItemsFunction : ProcessQueueTProcessItemsFunctionSignature *
?canProcessItemFunction : ProcessQueueTCanProcessItemFunctionSignature *
?processInterval : float *
?maximumThreads : int *
?processTimeout : int *
?requeueOnTimeout : bool *
?requeueOnException : bool
(* Defaults:
let _canProcessItemFunction = defaultArg canProcessItemFunction null
let _processInterval = defaultArg processInterval 100
let _maximumThreads = defaultArg maximumThreads 5
let _processTimeout = defaultArg processTimeout -1
let _requeueOnTimeout = defaultArg requeueOnTimeout false
let _requeueOnException = defaultArg requeueOnException false
*)
-> ProcessQueue
GSF.Collections.ProcessQueue = function(processItemsFunction, canProcessItemFunction, processInterval, maximumThreads, processTimeout, requeueOnTimeout, requeueOnException);
View SourceParameters
- processItemsFunction ProcessQueueTProcessItemsFunctionSignature
- Delegate that defines a method to process multiple items at once.
- canProcessItemFunction ProcessQueueTCanProcessItemFunctionSignature (Optional)
- Delegate that determines if an item can currently be processed.
- processInterval Double (Optional)
- a Double value which represents the process interval in milliseconds.
- maximumThreads Int32 (Optional)
- The maximum number of threads for the queue to use.
- processTimeout Int32 (Optional)
- The number of seconds before a process should timeout.
- requeueOnTimeout Boolean (Optional)
- A Boolean value that indicates whether a process should requeue an item on timeout.
- requeueOnException Boolean (Optional)
- A Boolean value that indicates whether a process should requeue after an exception.
See Also