com.ibm.di.queue
Class MemQMutex
java.lang.Object
com.ibm.di.queue.MemQMutex
public class MemQMutex
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemQMutex
public MemQMutex()
acquire
public void acquire()
throws InterruptedException
- Acquires lock
- Throws:
InterruptedException
isLockAvalailable
public boolean isLockAvalailable()
- Checks current availability of the lock
- Returns:
- true if a lock is available, false otherwise
release
public void release()
- Releases lock