com.jaxfront.core.util.io.cache
Class SemaphoreLockManager

java.lang.Object
  extended by com.jaxfront.core.util.io.cache.AbstractLockManager
      extended by com.jaxfront.core.util.io.cache.SemaphoreLockManager

public class SemaphoreLockManager
extends AbstractLockManager


Method Summary
static SemaphoreLockManager getInstance()
           
 java.util.concurrent.Semaphore getSemaphore(java.lang.String key)
           
 void release()
           
 void release(java.lang.String key)
           
 
Methods inherited from class com.jaxfront.core.util.io.cache.AbstractLockManager
getLocked, getTimeOut, setTimeOut
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SemaphoreLockManager getInstance()

getSemaphore

public java.util.concurrent.Semaphore getSemaphore(java.lang.String key)

release

public void release()
Specified by:
release in class AbstractLockManager

release

public void release(java.lang.String key)
Specified by:
release in class AbstractLockManager