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.runtime;
05:
06: public final class MemoryEventType {
07:
08: public static final MemoryEventType ABOVE_THRESHOLD = new MemoryEventType(
09: "ABOVE_THRESHOLD");
10: public static final MemoryEventType ABOVE_CRITICAL_THRESHOLD = new MemoryEventType(
11: "ABOVE_CRITICAL_THRESHOLD");
12: public static final MemoryEventType BELOW_THRESHOLD = new MemoryEventType(
13: "BELOW_THRESHOLD");
14:
15: private final String name;
16:
17: // Not exposed to anyone
18: private MemoryEventType(String name) {
19: this .name = name;
20: }
21:
22: public String toString() {
23: return "MemoryEventType." + name;
24: }
25:
26: }
|