KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > objectserver > impl > ObjectManagerConfig


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.objectserver.impl;
5
6 public class ObjectManagerConfig {
7
8   private final long gcThreadSleepTime;
9   private boolean doGC;
10   private final boolean verboseGC;
11   private final boolean paranoid;
12   private final int deleteBatchSize;
13
14   public ObjectManagerConfig(long gcThreadSleepTime, boolean doGC, boolean verboseGC, boolean paranoid, int deleteBatchSize) {
15     this.gcThreadSleepTime = gcThreadSleepTime;
16     this.doGC = doGC;
17     this.verboseGC = verboseGC;
18     this.paranoid = paranoid;
19     this.deleteBatchSize = deleteBatchSize;
20   }
21
22   public boolean paranoid() {
23     return paranoid;
24   }
25
26   public boolean doGC() {
27     return doGC;
28   }
29
30   public long gcThreadSleepTime() {
31     return gcThreadSleepTime;
32   }
33
34   public boolean verboseGC() {
35     return verboseGC;
36   }
37
38   public int getDeleteBatchSize() {
39     return deleteBatchSize;
40   }
41
42 }
43
Popular Tags