com.ibm.di.queue
Class MemQMutex

java.lang.Object
  extended by com.ibm.di.queue.MemQMutex

public class MemQMutex
extends Object


Constructor Summary
MemQMutex()
           
 
Method Summary
 void acquire()
          Acquires lock
 boolean isLockAvalailable()
          Checks current availability of the lock
 void release()
          Releases lock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemQMutex

public MemQMutex()
Method Detail

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