1 8 9 package com.sleepycat.je.latch; 10 11 import com.sleepycat.je.DatabaseException; 12 import com.sleepycat.je.RunRecoveryException; 13 14 22 public interface SharedLatch { 23 24 28 public void setName(String name); 29 30 35 public boolean setNoteLatch(boolean noteLatch); 36 37 42 public void setExclusiveOnly(boolean exclusiveOnly); 43 44 57 public void acquireExclusive() 58 throws DatabaseException; 59 60 69 public boolean acquireExclusiveNoWait() 70 throws DatabaseException; 71 72 79 public void acquireShared() 80 throws DatabaseException; 81 82 86 public void release() 87 throws LatchNotHeldException; 88 89 public boolean isWriteLockedByCurrentThread(); 90 91 96 public void releaseIfOwner() 97 throws LatchNotHeldException; 98 99 102 public boolean isOwner(); 103 } 104 | Popular Tags |