ProcessQueueTCanProcessItemFunctionSignature Delegate

Function signature that determines if an item can be currently processed.

Definition

Namespace: Gemstone.Threading.Collections
Assembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.128 -- Release Build+d4a9a653be1def5888b9be91bb1825c8655f3529
public delegate bool CanProcessItemFunctionSignature(
	T item
)

Parameters

item  T
Item to be checked for processing availability.

Return Value

Boolean
True, if item can be processed. The default is true.

Remarks

Implementation of this function is optional. It is assumed that an item can be processed if this function is not defined

Items must eventually get to a state where they can be processed, or they will remain in the ProcessQueueT indefinitely.

Note that when this function is implemented and ProcessingStyle = ManyAtOnce (i.e., ProcessItemsFunction is defined), then each item presented for processing must evaluate as "CanProcessItem = True" before any items are processed.

See Also