Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Second SystemDateProvider code snippet for Wealthfront engineering blog
public class SystemDateProvider implements Provider<LocalDate> {
 private final Supplier<LocalDate> supplier =
   Suppliers.memoizeWithExpiration(this::loadSystemDate, 1, MINUTES);
 private LocalDate loadSystemDate() {
   // Load from database
 public LocalDate get() {
   return supplier.get();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment