Package | Description |
---|---|
sirius.kernel.async |
Provides a framework for asynchronous execution of given tasks.
|
sirius.kernel.commons |
Provides common classes used by large parts of the framework.
|
Modifier and Type | Method and Description |
---|---|
RateLimit |
TaskContext.shouldUpdateState()
Can be used to determine if the state should be refreshed.
|
Modifier and Type | Method and Description |
---|---|
static RateLimit |
RateLimit.everyNthCall(long n)
Creates a new call based rate limit.
|
static RateLimit |
RateLimit.nTimesPerInterval(long interval,
TimeUnit unit,
int permitsPerInterval)
Creates a new time based rate limit which permits up to N calls per interval.
|
static RateLimit |
RateLimit.timeInterval(long interval,
TimeUnit unit)
Creates a new time based rate limit.
|
Copyright © 2018. All rights reserved.