canAllocate

fun canAllocate(amountNeeded: Int): Boolean

For use, before calling allocate()

Return

true if and only if resources can be selected according to the current resource selection rule that will have sufficient amount available to fill the request

Parameters

amountNeeded

amount needed by the request