| Package | Description |
|---|---|
| io.engineblock.activityapi.core | |
| io.engineblock.activityapi.rates | |
| io.engineblock.activityimpl |
| Modifier and Type | Method and Description |
|---|---|
RateLimiter |
Activity.getCycleLimiter()
Get the current cycle rate limiter for this activity.
|
RateLimiter |
Activity.getCycleRateLimiter(Supplier<? extends RateLimiter> supplier)
Get or create the cycle rate limiter in a safe way.
|
RateLimiter |
Activity.getPhaseLimiter()
Get the current phase rate limiter for this activity.
|
RateLimiter |
Activity.getPhaseRateLimiter(Supplier<? extends RateLimiter> supplier)
Get or create the phase
RateLimiter in a concurrent-safe
way. |
RateLimiter |
Activity.getStrideLimiter()
Get the current stride rate limiter for this activity.
|
RateLimiter |
Activity.getStrideRateLimiter(Supplier<? extends RateLimiter> supplier)
Get or create the stride
RateLimiter in a concurrent-safe
way. |
| Modifier and Type | Method and Description |
|---|---|
void |
Activity.setCycleLimiter(RateLimiter rateLimiter)
Set the cycle rate limiter for this activity.
|
void |
Activity.setPhaseLimiter(RateLimiter rateLimiter)
Set the phase rate limiter for this activity.
|
void |
Activity.setStrideLimiter(RateLimiter rateLimiter)
Set the stride rate limiter for this activity.
|
| Modifier and Type | Method and Description |
|---|---|
RateLimiter |
Activity.getCycleRateLimiter(Supplier<? extends RateLimiter> supplier)
Get or create the cycle rate limiter in a safe way.
|
RateLimiter |
Activity.getPhaseRateLimiter(Supplier<? extends RateLimiter> supplier)
Get or create the phase
RateLimiter in a concurrent-safe
way. |
RateLimiter |
Activity.getStrideRateLimiter(Supplier<? extends RateLimiter> supplier)
Get or create the stride
RateLimiter in a concurrent-safe
way. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
TestableRateLimiter |
| Modifier and Type | Class and Description |
|---|---|
class |
AverageRateLimiter
This rate limiter uses nanoseconds as the unit of timing.
|
| Modifier and Type | Method and Description |
|---|---|
static RateLimiter |
RateLimiters.create(ActivityDef def,
String label,
String specString) |
static RateLimiter |
RateLimiters.createOrUpdate(ActivityDef def,
String label,
RateLimiter extant,
RateSpec spec) |
| Modifier and Type | Method and Description |
|---|---|
static RateLimiter |
RateLimiters.createOrUpdate(ActivityDef def,
String label,
RateLimiter extant,
RateSpec spec) |
| Constructor and Description |
|---|
BurstRateGauge(RateLimiter rateLimiter) |
DelayGauge(RateLimiter rateLimiter) |
RateGauge(RateLimiter rateLimiter) |
| Modifier and Type | Method and Description |
|---|---|
RateLimiter |
SimpleActivity.getCycleLimiter() |
RateLimiter |
SimpleActivity.getCycleRateLimiter(Supplier<? extends RateLimiter> s) |
RateLimiter |
SimpleActivity.getPhaseLimiter() |
RateLimiter |
SimpleActivity.getPhaseRateLimiter(Supplier<? extends RateLimiter> supplier) |
RateLimiter |
SimpleActivity.getStrideLimiter() |
RateLimiter |
SimpleActivity.getStrideRateLimiter(Supplier<? extends RateLimiter> s) |
| Modifier and Type | Method and Description |
|---|---|
void |
SimpleActivity.setCycleLimiter(RateLimiter rateLimiter) |
void |
SimpleActivity.setPhaseLimiter(RateLimiter rateLimiter) |
void |
SimpleActivity.setStrideLimiter(RateLimiter rateLimiter) |
| Modifier and Type | Method and Description |
|---|---|
RateLimiter |
SimpleActivity.getCycleRateLimiter(Supplier<? extends RateLimiter> s) |
RateLimiter |
SimpleActivity.getPhaseRateLimiter(Supplier<? extends RateLimiter> supplier) |
RateLimiter |
SimpleActivity.getStrideRateLimiter(Supplier<? extends RateLimiter> s) |
Copyright © 2018. All rights reserved.