com.sleepycat.je.latch
Class LatchSupport

java.lang.Object
  extended by 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.


Field Summary
(package private) static LatchTable latchTable
           
 
Constructor Summary
LatchSupport()
           
 
Method Summary
static void clearNotes()
           
static int countLatchesHeld()
          Only call under the assert system.
static void dumpLatchesHeld()
           
static Class getJava5LatchClass()
           
static String latchesHeldToString()
           
static Latch makeLatch(EnvironmentImpl env)
           
static Latch makeLatch(String name, EnvironmentImpl env)
           
static SharedLatch makeSharedLatch(String name, EnvironmentImpl env)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

latchTable

static LatchTable latchTable
Constructor Detail

LatchSupport

public LatchSupport()
Method Detail

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.