Interface SeizeableIfc

    • Method Detail

      • seize

        Request seize​(Request request)
        Causes the request to enter the resource. If the resource is idle, the request will be using the resource. If the resource is not idle the request will wait. A Request will be rejected if its preemption rule is NONE and the ResourceUnit's failure delay option is false. This implies that the Request cannot be processed by the ResourceUnit because the request cannot be preempted and the resource unit does not permit its failures to delay (i.e. they must preempt).
        Parameters:
        request - a request made by this unit
        Returns:
        the request is returned to emphasize that the user may want to check its state