WorkerTModel, TItemCreateBatchPredicateCore Method

TIBCO Spotfire 11.4 API Reference
Override to customize how work items are selected for batch work. The default implementation returns null, which selects all work items.

Namespace:  Spotfire.Dxp.Framework.Threading
Assembly:  Spotfire.Dxp.Framework (in Spotfire.Dxp.Framework.dll) Version: 51.0.16121.3915 (51.0.16121.3915)
Syntax

C#
protected virtual Predicate<TItem> CreateBatchPredicateCore(
	TItem firstWorkItem
)

Parameters

firstWorkItem
Type: TItem
The first work item already included in the batch.

Return Value

Type: PredicateTItem
A predicate that shall return true for work items to be included in the batch.
Remarks

The predicate is called at most MaxBatchSize - 1 times, and only for work items that have the same model generation as firstWorkItem.
Version Information

Supported in: 11.4, 11.3, 11.2, 11.1, 11.0, 10.10, 7.11
See Also

Reference