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> Supplier<T> |
memoizeWithAdaptiveTtl(Supplier<T> supplier,
Duration minTtl,
Duration maxTtl)
Memoizes the provided supplier.
|
static <T> Supplier<T> |
memoizeWithFixedTtl(Supplier<T> supplier,
Duration ttl)
Memoizes the provided supplier.
|
@NotNull public static <T> Supplier<T> memoizeWithFixedTtl(@NotNull Supplier<T> supplier, @NotNull Duration ttl)
@NotNull public static <T> 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 © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.