01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.object.cache;
05:
06: public class DefaultCacheConfig implements CacheConfig {
07:
08: public int getLeastCount() {
09: return 2;
10: }
11:
12: public int getPercentageToEvict() {
13: return 10;
14: }
15:
16: public long getSleepInterval() {
17: return 3000;
18: }
19:
20: public int getUsedCriticalThreshold() {
21: return 90;
22: }
23:
24: public int getUsedThreshold() {
25: return 70;
26: }
27:
28: public boolean isOnlyOldGenMonitored() {
29: return true;
30: }
31:
32: public boolean isLoggingEnabled() {
33: return false;
34: }
35:
36: public int getObjectCountCriticalThreshold() {
37: return -1;
38: }
39:
40: }
|