@Test public void testMinTtl() { assertValidates(new StoreConfig().setTtl(new Duration(1, TimeUnit.MINUTES))); assertFailsValidation(new StoreConfig().setTtl(new Duration(59, TimeUnit.SECONDS)), "ttl", "must be at least 1m", MinDuration.class); }
@Config("store.ttl") StoreConfig setTtl(Duration ttl) { this.ttl = requireNonNull(ttl, "ttl must not be null"); return this; }
StoreConfig { @Config("store.ttl") StoreConfig setTtl(Duration ttl) { this.ttl = requireNonNull(ttl, "ttl must not be null"); return this; } }
StoreConfig { @Config("store.ttl") StoreConfig setTtl(Duration ttl) { this.ttl = requireNonNull(ttl, "ttl must not be null"); return this; }  }
StoreConfig { @Config("store.ttl") StoreConfig setTtl(Duration ttl) { this.ttl = requireNonNull(ttl, "ttl must not be null"); return this; }   }
StoreConfig { @Config("store.ttl") StoreConfig setTtl(Duration ttl) { this.ttl = requireNonNull(ttl, "ttl must not be null"); return this; }    }