removeAndTerminate

fun removeAndTerminate(entity: ProcessModel.Entity, waitStats: Boolean = false)

Removes the entity from the queue and tells it to terminate its process. The process that was suspended because the entity was placed in the queue is immediately terminated.

Parameters

entity

the entity to remove from the queue

waitStats

if true the waiting time statistics are collected on the usage of the queue. The default is false.