1 8 9 package com.sleepycat.je.latch; 10 11 import com.sleepycat.je.DatabaseException; 12 import com.sleepycat.je.RunRecoveryException; 13 14 public interface Latch { 15 16 20 public void setName(String name); 21 22 36 public void acquire() 37 throws DatabaseException; 38 39 48 public boolean acquireNoWait() 49 throws LatchException; 50 51 56 public void releaseIfOwner(); 57 58 64 public void release() 65 throws LatchNotHeldException; 66 67 72 public boolean isOwner(); 73 74 79 public Thread owner(); 80 81 86 public int nWaiters(); 87 88 91 public LatchStats getLatchStats(); 92 93 96 public String toString(); 97 } 98 | Popular Tags |