BatchQueue

constructor(parent: ModelElement, defaultBatchSize: Int = 1, defaultPredicate: (T) -> Boolean = Companion::alwaysTrueFunction, name: String? = null, discipline: Queue.Discipline = Discipline.FIFO)

Parameters

parent

the element's parent model element

defaultBatchSize

the default batch size for this queue

defaultPredicate

the default predicate to use when selecting elements for the batch. The default is an alwaysTrueFunction, such that every element in the queue satisfies the selection criterion.

name

the elements name

discipline

the queue discipline for the queue

T

the type of batching entity being held in the queue. A batching entity has additional functionality to hold the formed batches.