- close() - Method in interface jdk.management.resource.ResourceContext
-
Close the ResourceContext, unbinding from all threads and removing all meters.
- contexts() - Method in class jdk.management.resource.ResourceContextFactory
-
Returns a Stream of the existing ResourceContexts.
- create(ResourceType, long) - Static method in class jdk.management.resource.BoundedMeter
-
Returns a new BoundedMeter with the type and upper bound.
- create(ResourceType, long, ResourceRequest) - Static method in class jdk.management.resource.BoundedMeter
-
Returns a new BoundedMeter with the type, upper bound, and parent.
- create(ResourceType, long, ResourceRequest, ResourceApprover) - Static method in class jdk.management.resource.BoundedMeter
-
Returns a new BoundedMeter with the type, upper bound, parent, and
approver.
- create(ResourceType, long, ResourceApprover) - Static method in class jdk.management.resource.BoundedMeter
-
Returns a new BoundedMeter with the type, upper bound, and approver.
- create(ResourceType, ResourceApprover) - Static method in class jdk.management.resource.NotifyingMeter
-
Returns a new NotifyingMeter with the type and approver.
- create(ResourceType, ResourceRequest, ResourceApprover) - Static method in class jdk.management.resource.NotifyingMeter
-
Returns a new NotifyingMeter with the type, approver and parent approver.
- create(String) - Method in class jdk.management.resource.ResourceContextFactory
-
Create a new ResourceContext.
- create(ResourceType) - Static method in class jdk.management.resource.SimpleMeter
-
Returns a new SimpleMeter with the ResourceType.
- create(ResourceType, ResourceRequest) - Static method in class jdk.management.resource.SimpleMeter
-
Returns a new SimpleMeter with the ResourceType and allocating from a parent.
- create(ResourceType, long, ResourceApprover) - Static method in class jdk.management.resource.ThrottledMeter
-
Create a new meter with a throttle rate and approver.
- create(ResourceType, ResourceRequest, ResourceApprover) - Static method in class jdk.management.resource.ThrottledMeter
-
Create a new meter with unlimited rate, parent and approver.
- create(ResourceType, long, ResourceRequest, ResourceApprover) - Static method in class jdk.management.resource.ThrottledMeter
-
Create a new meter with a throttle rate, parent and approver.
- getAccuracy() - Method in interface jdk.management.resource.ResourceId
-
Returns the accuracy of the measurement for the current resource request.
- getAllocated() - Method in interface jdk.management.resource.ResourceMeter
-
Returns the cumulative total of allocations from the ResourceMeter.
- getAllocated() - Method in class jdk.management.resource.SimpleMeter
-
- getApprover() - Method in class jdk.management.resource.NotifyingMeter
-
Return the ResourceApprover.
- getBound() - Method in class jdk.management.resource.BoundedMeter
-
Returns the upper bound for the meter.
- getCurrentRate() - Method in class jdk.management.resource.ThrottledMeter
-
Returns an estimate of the current rate in amount per second.
- getGranularity() - Method in class jdk.management.resource.NotifyingMeter
-
Returns the granularity.
- getInstance() - Static method in class jdk.management.resource.ResourceContextFactory
-
Returns the factory for ResourceContexts if enabled in the runtime.
- getMeter(ResourceType) - Method in interface jdk.management.resource.ResourceContext
-
Return the ResourceMeter for the ResourceType.
- getName() - Method in interface jdk.management.resource.ResourceContext
-
Return the name of the ResourceContext.
- getName() - Method in interface jdk.management.resource.ResourceId
-
Returns the name of the resource.
- getName() - Method in class jdk.management.resource.ResourceType
-
Returns the name of the resource.
- getParent() - Method in class jdk.management.resource.SimpleMeter
-
Returns the parent ResourceRequest.
- getRatePerSec() - Method in class jdk.management.resource.ThrottledMeter
-
Returns the current throttle rate per second.
- getResourceRequest(ResourceType) - Method in interface jdk.management.resource.ResourceContext
-
Returns the ResourceRequest in the ResourceContext that handles
requests to allocate or release for the ResourceType.
- getResourceRequest(ResourceType) - Method in class jdk.management.resource.ResourceContextFactory
-
Returns the ResourceRequest for the current ResourceContext and ResourceType.
- getThreadContext() - Method in class jdk.management.resource.ResourceContextFactory
-
Returns the ResourceContext associated with the current thread.
- getThreadContext(Thread) - Method in class jdk.management.resource.ResourceContextFactory
-
Returns the ResourceContext associated with the thread.
- getTotalsContext() - Method in class jdk.management.resource.ResourceContextFactory
-
Returns a ResourceContext that provides the totals for all
ResourceContexts.
- getType() - Method in interface jdk.management.resource.ResourceMeter
-
Returns the ResourceType
.
- getType() - Method in class jdk.management.resource.SimpleMeter
-
- getUnassignedContext() - Method in class jdk.management.resource.ResourceContextFactory
-
Returns the ResourceContext that is the default when a thread is not
associated with a ResourceContext.
- getValue() - Method in interface jdk.management.resource.ResourceMeter
-
Returns the current net value of the ResourceMeter.
- getValue() - Method in class jdk.management.resource.SimpleMeter
-
- removeResourceMeter(ResourceMeter) - Method in interface jdk.management.resource.ResourceContext
-
Remove the ResourceMeter from the ResourceContext.
- request(ResourceMeter, long, long, ResourceId) - Method in interface jdk.management.resource.ResourceApprover
-
Requests approval to allocate or release a resource from a
ResourceMeter.
- request(long, ResourceId) - Method in interface jdk.management.resource.ResourceRequest
-
Request or release amount
units of the resource.
- request(long, ResourceId) - Method in class jdk.management.resource.SimpleMeter
-
Returns the validated and allocated amount and adjusts the meter.
- requestAccurateUpdate(ResourceAccuracy) - Method in interface jdk.management.resource.ResourceContext
-
Request an update of the metrics for the ResourceContext.
- ResourceAccuracy - Enum in jdk.management.resource
-
ResourceAccuracy reflects the accuracy of an amount being requested though a
ResourceMeter.
- ResourceApprover - Interface in jdk.management.resource
-
A ResourceApprover is a callback to approve resource
requests.
- ResourceContext - Interface in jdk.management.resource
-
A set of ResourceMeters that accumulate resource usage by threads.
- ResourceContextFactory - Class in jdk.management.resource
-
The ResourceContextFactory provides access to ResourceContext functions.
- ResourceId - Interface in jdk.management.resource
-
ResourceId provides a name and accuracy for a resource instance.
- ResourceMeter - Interface in jdk.management.resource
-
A resource meter with a current value and a ResourceType.
- ResourceRequest - Interface in jdk.management.resource
-
A ResourceRequest is an interface to allocate or release resources.
- ResourceRequestDeniedException - Exception in jdk.management.resource
-
ResourceRequestDeniedException indicates a resource exception.
- ResourceRequestDeniedException() - Constructor for exception jdk.management.resource.ResourceRequestDeniedException
-
Constructs a new ResourceRequestDeniedException with null
as its
detail message.
- ResourceRequestDeniedException(String) - Constructor for exception jdk.management.resource.ResourceRequestDeniedException
-
Constructs a new ResourceRequestDeniedException with the specified detail message.
- ResourceRequestDeniedException(String, Throwable) - Constructor for exception jdk.management.resource.ResourceRequestDeniedException
-
Constructs a new ResourceRequestDeniedException with the specified detail message and
cause.
- ResourceType - Class in jdk.management.resource
-
A ResourceType with a name.