seizeTrigger

fun seizeTrigger(amountNeeded: Int = 1, seizePriority: Int = ProcessModel.SEIZE_PRIORITY, recordRenegedWait: Boolean = true): WaitTrigger<Allocation>(source)

A trigger for units of this resource, waiting in its own queue, for use in a wait for the first of several things (waitForFirst). As the form of Resource that takes a queue.

Parameters

amountNeeded

the number of units wanted; at least 1

seizePriority

the priority of the yield a wait with this trigger makes before it starts

recordRenegedWait

whether a request that leaves without service records its wait in the queue's time in queue