View Javadoc

1   package com.atlassian.vcache.internal;
2   
3   import com.atlassian.vcache.ExternalCache;
4   import com.atlassian.vcache.ExternalCacheSettings;
5   import com.atlassian.vcache.JvmCache;
6   import com.atlassian.vcache.JvmCacheSettings;
7   
8   /**
9    * A manager for retrieving the default settings for caches.
10   *
11   * @since 1.0
12   */
13  public interface VCacheSettingsDefaultsProvider {
14      /**
15       * Obtain the default settings for an {@link ExternalCache}.
16       *
17       * @param name the cache name
18       * @return the default settings for the specified cache
19       */
20      ExternalCacheSettings getExternalDefaults(String name);
21  
22      /**
23       * Obtain the default settings for a {@link JvmCache}.
24       *
25       * @param name the cache name
26       * @return the default settings for the specified cache
27       */
28      JvmCacheSettings getJvmDefaults(String name);
29  }