public class BambooSuppliers extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BambooSuppliers.ResettableMemoizingSupplier<T> |
Constructor and Description |
---|
BambooSuppliers() |
Modifier and Type | Method and Description |
---|---|
static <E> BambooSuppliers.ResettableMemoizingSupplier<E> |
memoizeResettably(com.google.common.base.Supplier<E> supplier) |
static <T> @NotNull Supplier<T> |
memoizeWithAdaptiveTtl(Supplier<T> supplier,
Duration minTtl,
Duration maxTtl)
Memoizes the provided supplier.
|
static <T> @NotNull Supplier<T> |
memoizeWithFixedTtl(@NotNull Supplier<T> supplier,
@NotNull Duration ttl)
Memoizes the provided supplier.
|
@NotNull public static <T> @NotNull Supplier<T> memoizeWithFixedTtl(@NotNull @NotNull Supplier<T> supplier, @NotNull @NotNull Duration ttl)
@NotNull public static <T> @NotNull Supplier<T> memoizeWithAdaptiveTtl(Supplier<T> supplier, Duration minTtl, Duration maxTtl)
public static <E> BambooSuppliers.ResettableMemoizingSupplier<E> memoizeResettably(com.google.common.base.Supplier<E> supplier)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.