Sage Modeling and Simulation Library

ResourceRequest Properties

The ResourceRequest type exposes the following members.


  Name Description
Public property AbortHandler
This method is called if the resource request is pending, and gets aborted, for example due to resource deadlocking. It can be null, in which case no deadlock detection is provided for the implementing type of ResourceRequest.
Public property AsyncGrantConfirmationCallback
This callback is called when a request, made with a do-not-block specification, that was initially refused, is finally deemed grantable, and provides the callee (presumably the original requester) with an opportunity to say, "No, I don't want that any more", or perhaps to get ready for receipt of the resource in question.
Public property AsyncGrantNotificationCallback
Called after a resource request is granted asynchronously.
Public property DefaultResourceManager
This is the resource manager from which a resource is obtained if none is provided in the reserve or acquire API calls.
Public property Key
This is a key that will be used to see if the resource manager is allowed to grant a given resource to the requester. It is used in conjunction with resource earmarking. (See IAccessRegulator)
Public property Priority
An indication of the priority of this request. A larger number indicates a higher priority.
Public property QuantityDesired
This property represents the quantity this request is to remove from the resource's 'Available' capacity.
Public property QuantityObtained
This property represents the quantity this request actually removed from the resource's 'Available' capacity. It is filled in by the granting authority.
Public property Replicate
Creates a fresh replica of this resource request, without any of the in-progress data. This replica can be used to generate another, similar resource request that can acquire its own resource.
Public property Requester
This is a reference to the object requesting the resource.
Public property RequiredResource
If non-null, this infers a specific, needed resource.
Public property ResourceObtained
This is a reference to the actual resource that was obtained.
Public property ResourceObtainedFrom
This is a reference to the resource manager that granted access to the resource.
Public property ResourceSelectionStrategy
This is the resource selection strategy that is to be used by the resource manager to select the resource to be granted from the pool of available resources.
Public property Status
Gets the status of this resource request.
Public property UserData
Data maintained by this resource request on behalf of the requester.