| Modifier and Type | Class | Description |
|---|---|---|
class |
BoundedMeter
A BoundedMeter enforces an upper bound, provides an approver callback for
changes and allocates from an optional parent.
|
|
class |
NotifyingMeter
A NotifyingMeter provides an approver callback for changes and
allocates from an optional parent.
|
|
class |
SimpleMeter
A SimpleMeter counts resource requests and releases
and allocates from an optional parent.
|
|
class |
ThrottledMeter
A ThrottledMeter with bandwidth limit, an approver callback for requests and
allocates from an optional parent.
|
| Modifier and Type | Method | Description |
|---|---|---|
ResourceMeter |
ResourceContext.getMeter(ResourceType type)
Return the ResourceMeter for the ResourceType.
|
| Modifier and Type | Method | Description |
|---|---|---|
Stream<ResourceMeter> |
ResourceContext.meters()
Returns a Stream of ResourceMeters in the ResourceContext.
|
| Modifier and Type | Method | Description |
|---|---|---|
default void |
ResourceContext.addResourceMeter(ResourceMeter meter)
Add a ResourceMeter.
|
|
default boolean |
ResourceContext.removeResourceMeter(ResourceMeter meter)
Remove the ResourceMeter from the ResourceContext.
|
|
long |
ResourceApprover.request(ResourceMeter meter,
long previous,
long amount,
ResourceId id)
Requests approval to allocate or release a resource from a
ResourceMeter.
|
Copyright © 2014, 2025, Oracle and/or its affiliates. All rights reserved.