Uses of Interface
io.jooby.SneakyThrows.Function
-
Uses of SneakyThrows.Function in io.jooby
Modifier and TypeMethodDescriptionstatic <V,
R> SneakyThrows.Function<V, R> SneakyThrows.throwingFunction
(SneakyThrows.Function<V, R> fn) Factory method forSneakyThrows.Function
andFunction
.Modifier and TypeMethodDescriptionstatic <V,
R> SneakyThrows.Function<V, R> SneakyThrows.throwingFunction
(SneakyThrows.Function<V, R> fn) Factory method forSneakyThrows.Function
andFunction
.default <T extends Enum<T>>
TValue.toEnum
(SneakyThrows.Function<String, T> fn) Convert this value to an Enum.default <T extends Enum<T>>
TConvert this value to an Enum.default <T> T
Value.value
(SneakyThrows.Function<String, T> fn) Convert value using the given function. -
Uses of SneakyThrows.Function in io.jooby.handler
Modifier and TypeMethodDescriptionstatic 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, String headerName) Rate limiter per header key using a cluster.ModifierConstructorDescriptionRateLimitHandler
(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, String headerName) Rate limit per header key.