Class SqlJetEmptyMutex
- java.lang.Object
-
- org.tmatesoft.sqljet.core.internal.mutex.SqlJetEmptyMutex
-
- All Implemented Interfaces:
ISqlJetMutex
public class SqlJetEmptyMutex extends java.lang.Object implements ISqlJetMutex
-
-
Constructor Summary
Constructors Constructor Description SqlJetEmptyMutex()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanattempt()Locks mutex if it is unlocked and return true.voidenter()Locks mutex.booleanheld()Check mutex locking status.voidleave()Unlocks mutex.
-
-
-
Method Detail
-
attempt
public boolean attempt()
Description copied from interface:ISqlJetMutexLocks mutex if it is unlocked and return true. Otherwise just return false. This method doesn't wait.- Specified by:
attemptin interfaceISqlJetMutex- Returns:
- true if this method locked mutex or false if mutex was already locked by other thread.
-
enter
public void enter()
Description copied from interface:ISqlJetMutexLocks mutex. If mutex is locked then this method waits while it will unlock.- Specified by:
enterin interfaceISqlJetMutex
-
held
public boolean held()
Description copied from interface:ISqlJetMutexCheck mutex locking status.- Specified by:
heldin interfaceISqlJetMutex- Returns:
- true if mutex is locked or false if mutex is unlocked.
-
leave
public void leave()
Description copied from interface:ISqlJetMutexUnlocks mutex.- Specified by:
leavein interfaceISqlJetMutex
-
-