Class Cache.Builder<K,V>

java.lang.Object
org.apache.juneau.internal.Cache.Builder<K,V>
Type Parameters:
K - The key type.
V - The value type.
Enclosing class:
Cache<K,V>

public static class Cache.Builder<K,V> extends Object
Builder class.
  • Method Details

    • disabled

      Disables this cache.
      Returns:
      This object.
    • logOnExit

      When enabled, logs cache hit statistics on this cache.
      Returns:
      This object.
    • maxSize

      public Cache.Builder<K,V> maxSize(int value)
      Specifies the maximum size of this cache.
      Parameters:
      value - The value for this setting.
      Returns:
      This object.
    • build

      public Cache<K,V> build()
      Builds this object.
      Returns:
      A new cache.