com.google.common.base.ExpiringMemoizingSupplierUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of throwing-supplier Show documentation
Show all versions of throwing-supplier Show documentation
Guava cache supplier extension to memoize exceptions, fallback, expiration control.
The newest version!
package com.google.common.base;
public class ExpiringMemoizingSupplierUtil {
/** Force a ExpiringMemoizingSupplier to expire now. */
public static void expire(Supplier supplier) {
((Suppliers.ExpiringMemoizingSupplier) supplier).expirationNanos = 0;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy