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