removeAllAndTerminate

fun removeAllAndTerminate(waitStats: Boolean = false, afterTermination: (entity: ProcessModel.Entity) -> Unit? = null)

Removes and terminates all the requests waiting in the queue

Parameters

waitStats

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

afterTermination

a function to invoke after the process is successfully terminated