Modifier and Type | Method and Description |
---|---|
ResourceApprover |
NotifyingMeter.getApprover()
Return the ResourceApprover.
|
Modifier and Type | Method and Description |
---|---|
static BoundedMeter |
BoundedMeter.create(ResourceType type,
long bound,
ResourceApprover approver)
Returns a new BoundedMeter with the type, upper bound, and approver.
|
static ThrottledMeter |
ThrottledMeter.create(ResourceType type,
long ratePerSec,
ResourceApprover approver)
Create a new meter with a throttle rate and approver.
|
static BoundedMeter |
BoundedMeter.create(ResourceType type,
long bound,
ResourceRequest parent,
ResourceApprover approver)
Returns a new BoundedMeter with the type, upper bound, parent, and
approver.
|
static ThrottledMeter |
ThrottledMeter.create(ResourceType type,
long ratePerSec,
ResourceRequest parent,
ResourceApprover approver)
Create a new meter with a throttle rate, parent and approver.
|
static NotifyingMeter |
NotifyingMeter.create(ResourceType type,
ResourceApprover approver)
Returns a new NotifyingMeter with the type and approver.
|
static NotifyingMeter |
NotifyingMeter.create(ResourceType type,
ResourceRequest parent,
ResourceApprover approver)
Returns a new NotifyingMeter with the type, approver and parent approver.
|
static ThrottledMeter |
ThrottledMeter.create(ResourceType type,
ResourceRequest parent,
ResourceApprover approver)
Create a new meter with unlimited rate, parent and approver.
|
Constructor and Description |
---|
BoundedMeter(ResourceType type,
long bound,
ResourceRequest parent,
ResourceApprover approver)
Constructor of a BoundedMeter.
|
NotifyingMeter(ResourceType type,
ResourceRequest parent,
ResourceApprover approver)
Constructor for subclasses.
|
Copyright © 2014, 2016, Oracle and/or its affiliates. All rights reserved.