com.sleepycat.je.latch
Class LatchSupport
java.lang.Object
com.sleepycat.je.latch.LatchSupport
public class LatchSupport
- extends Object
Various constructs to support Latches. Switch hitting for 1.4 vs Java 5
JVM latch implementation (i.e. our's vs the JVM's), and assert-based
latch counting code.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
latchTable
static LatchTable latchTable
LatchSupport
public LatchSupport()
getJava5LatchClass
public static Class getJava5LatchClass()
makeLatch
public static Latch makeLatch(String name,
EnvironmentImpl env)
makeLatch
public static Latch makeLatch(EnvironmentImpl env)
makeSharedLatch
public static SharedLatch makeSharedLatch(String name,
EnvironmentImpl env)
countLatchesHeld
public static int countLatchesHeld()
- Only call under the assert system. This records and counts held latches.
dumpLatchesHeld
public static void dumpLatchesHeld()
latchesHeldToString
public static String latchesHeldToString()
clearNotes
public static void clearNotes()
Copyright 2004-2006 Sleepycat, Inc. All Rights Reserved.