KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > runtime > MemoryEventType


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.runtime;
5
6 public final class MemoryEventType {
7
8   public static final MemoryEventType ABOVE_THRESHOLD = new MemoryEventType("ABOVE_THRESHOLD");
9   public static final MemoryEventType ABOVE_CRITICAL_THRESHOLD = new MemoryEventType("ABOVE_CRITICAL_THRESHOLD");
10   public static final MemoryEventType BELOW_THRESHOLD = new MemoryEventType("BELOW_THRESHOLD");
11
12   private final String JavaDoc name;
13
14   // Not exposed to anyone
15
private MemoryEventType(String JavaDoc name) {
16     this.name = name;
17   }
18
19   public String JavaDoc toString() {
20     return "MemoryEventType." + name;
21   }
22
23 }
24
Popular Tags