remove And Terminate
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
wait Stats
if true the waiting time statistics are collected on the usage of the queue. The default is false.