public CachingMostRecentProvider()

in sdk1/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/encryption/providers/CachingMostRecentProvider.java [74:85]


  public CachingMostRecentProvider(
      final ProviderStore keystore,
      final String materialName,
      final long ttlInMillis,
      final int maxCacheSize) {
    this.keystore = checkNotNull(keystore, "keystore must not be null");
    this.defaultMaterialName = materialName;
    this.ttlInNanos = TimeUnit.MILLISECONDS.toNanos(ttlInMillis);

    this.providerCache = new TTLCache<>(maxCacheSize, ttlInMillis, providerLoader);
    this.versionCache = new TTLCache<>(maxCacheSize, ttlInMillis, versionLoader);
  }