Package | Description |
---|---|
io.jooby |
Modifier and Type | Method and Description |
---|---|
static <V,R> SneakyThrows.Function<V,R> |
SneakyThrows.throwingFunction(SneakyThrows.Function<V,R> fn)
Factory method for
SneakyThrows.Function and Function . |
Modifier and Type | Method and Description |
---|---|
static RateLimitHandler |
RateLimitHandler.cluster(SneakyThrows.Function<String,io.github.bucket4j.Bucket> proxyManager)
Rate limiter per IP/Remote address using a cluster.
|
static RateLimitHandler |
RateLimitHandler.cluster(SneakyThrows.Function<String,io.github.bucket4j.Bucket> proxyManager,
SneakyThrows.Function<Context,String> classifier)
Rate limiter per key using a cluster.
|
static RateLimitHandler |
RateLimitHandler.cluster(SneakyThrows.Function<String,io.github.bucket4j.Bucket> proxyManager,
SneakyThrows.Function<Context,String> classifier)
Rate limiter per key using a cluster.
|
static RateLimitHandler |
RateLimitHandler.cluster(SneakyThrows.Function<String,io.github.bucket4j.Bucket> proxyManager,
String headerName)
Rate limiter per header key using a cluster.
|
static <V,R> SneakyThrows.Function<V,R> |
SneakyThrows.throwingFunction(SneakyThrows.Function<V,R> fn)
Factory method for
SneakyThrows.Function and Function . |
default <T extends Enum<T>> |
Value.toEnum(SneakyThrows.Function<String,T> fn)
Convert this value to an Enum.
|
default <T extends Enum<T>> |
Value.toEnum(SneakyThrows.Function<String,T> fn,
Function<String,String> nameProvider)
Convert this value to an Enum.
|
default <T> T |
Value.value(SneakyThrows.Function<String,T> fn)
Convert value using the given function.
|
Constructor and Description |
---|
RateLimitHandler(SneakyThrows.Function<String,io.github.bucket4j.Bucket> bucketFactory)
Rate limit per IP/Remote Address.
|
RateLimitHandler(SneakyThrows.Function<String,io.github.bucket4j.Bucket> bucketFactory,
SneakyThrows.Function<Context,String> classifier)
Rate limiter with a custom key provider.
|
RateLimitHandler(SneakyThrows.Function<String,io.github.bucket4j.Bucket> bucketFactory,
SneakyThrows.Function<Context,String> classifier)
Rate limiter with a custom key provider.
|
RateLimitHandler(SneakyThrows.Function<String,io.github.bucket4j.Bucket> bucketFactory,
String headerName)
Rate limit per header key.
|
Copyright © 2020. All rights reserved.