Modifier and Type | Method and Description |
---|---|
long |
ResourceRequest.request(long amount,
ResourceId id)
Request or release
amount units of the resource. |
long |
SimpleMeter.request(long amount,
ResourceId id)
Returns the validated and allocated amount and adjusts the meter.
|
long |
ResourceApprover.request(ResourceMeter meter,
long previous,
long amount,
ResourceId id)
Requests approval to allocate or release a resource from a
ResourceMeter.
|
protected long |
SimpleMeter.validate(long previous,
long amount,
ResourceId id)
Validate the amount returning the validated amount.
|
protected long |
NotifyingMeter.validate(long previous,
long amount,
ResourceId id)
Returns the amount validated by the approver.
|
long |
ThrottledMeter.validate(long previous,
long amount,
ResourceId id)
Validates the amount.
|
protected long |
BoundedMeter.validate(long previous,
long amount,
ResourceId id) |
Copyright © 2014, 2015, Oracle and/or its affiliates. All rights reserved.