|
ProcessDictionaryTKey, TValue(ProcessQueueKeyValuePairTKey, TValueProcessItemsFunctionSignature, ProcessDictionaryTKey, TValueCanProcessItemFunctionSignature, Double, Int32, Int32, Boolean, Boolean) Constructor
|
Namespace: GSF.CollectionsAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax new :
processItemsFunction : ProcessQueueTProcessItemsFunctionSignature *
?canProcessItemFunction : ProcessDictionaryTKey, TValueCanProcessItemFunctionSignature *
?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
*)
-> ProcessDictionary
GSF.Collections.ProcessDictionary = function(processItemsFunction, canProcessItemFunction, processInterval, maximumThreads, processTimeout, requeueOnTimeout, requeueOnException);
View SourceParameters
- processItemsFunction ProcessQueueTProcessItemsFunctionSignature
- A delegate ProcessDictionaryTKey, TValueProcessItemFunctionSignature that defines a function signature to process multiple items at once.
- canProcessItemFunction ProcessDictionaryTKey, TValueCanProcessItemFunctionSignature (Optional)
- A delegate ProcessDictionaryTKey, TValueCanProcessItemFunctionSignature that determines if a key and value can currently be processed.
- processInterval Double (Optional)
- A Double which represents the process interval.
- maximumThreads Int32 (Optional)
- An Int32 that represents the max number of threads to use.
- processTimeout Int32 (Optional)
- An Int32 that represents the amount of time before a process times out.
- requeueOnTimeout Boolean (Optional)
- A Boolean value that indicates whether the process should requeue the item after a timeout.
- requeueOnException Boolean (Optional)
- A Boolean value that indicates whether the process should requeue the item after an exception.
See Also