KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > object > cache > DefaultCacheConfig


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.object.cache;
5
6
7 public class DefaultCacheConfig implements CacheConfig {
8
9   public int getLeastCount() {
10     return 2;
11   }
12
13   public int getPercentageToEvict() {
14     return 10;
15   }
16
17   public long getSleepInterval() {
18     return 3000;
19   }
20
21   public int getUsedCriticalThreshold() {
22     return 90;
23   }
24
25   public int getUsedThreshold() {
26     return 70;
27   }
28
29   public boolean isOnlyOldGenMonitored() {
30     return true;
31   }
32
33   public boolean isLoggingEnabled() {
34     return false;
35   }
36
37 }
38
Popular Tags