resourceBecameInactiveWhileWaitingInQueueWithSeizeRequest

Subclasses of entity can override this method to provide behavior if a request associated with the entity has its requested resource become inactive while its request was waiting in the request queue. This is not a trivial thing to do since the entity will be suspended after seizing a resource. If the entity wants to stop waiting, then the process will have to be terminated and the termination logic will need to handle what to do after the termination. However, if the entity can wait for a different resource, it is possible to remove the request from its current queue and place the request in a different queue that supports a different (active) resource.

Parameters

queue

the queue holding the request

resource

the involved resource that became inactive

request

the involved request


Subclasses of entity can override this method to provide behavior if a request associated with the entity has its requested resource become inactive while its request was waiting in the request queue. This is not a trivial thing to do since the entity will be suspended after seizing a resource. If the entity wants to stop waiting, then the process will have to be terminated and the termination logic will need to handle what to do after the termination. However, if the entity can wait for a different resource, it is possible to remove the request from its current queue and place the request in a different queue that supports a different (active) resource.

Parameters

queue

the queue holding the request

resource

the involved resource

request

the involved request