org.japtproxy.misc
Class ResourceLock

java.lang.Object
  extended by org.japtproxy.misc.ResourceLock

public final class ResourceLock
extends java.lang.Object

This ResourceLock utility class is used to obtain ReadWriteLocks for specific lockIdentifiers.

Version:
$LastChangedRevision: 118 $
Author:
Oliver J. Siegmar

Method Summary
static java.util.concurrent.locks.ReadWriteLock obtainLocker(java.lang.String lockIdentifier)
          Method to obtain the ReadWriteLock for a given lockIdentifier.
static void releaseLocker(java.lang.String lockIdentifier)
          Method to release the ReadWriteLock for a given lockIdentifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

obtainLocker

public static java.util.concurrent.locks.ReadWriteLock obtainLocker(java.lang.String lockIdentifier)
Method to obtain the ReadWriteLock for a given lockIdentifier.

Parameters:
lockIdentifier - the lockIdentifier
Returns:
the ReadWriteLock

releaseLocker

public static void releaseLocker(java.lang.String lockIdentifier)
Method to release the ReadWriteLock for a given lockIdentifier.

Parameters:
lockIdentifier - the lockIdentifier


Copyright © 2006-2008. All Rights Reserved.