org.almendra.commons.threads
Class LockUtility

java.lang.Object
  extended by org.almendra.commons.threads.LockUtility

public class LockUtility
extends java.lang.Object

Defines static utility methods for dealing with locks. The idea is to define a single place to deal with InterruptedExceptions uniformingly avoiding code repretition.

Author:
Oliver Plohmann

Method Summary
static void acquire(EDU.oswego.cs.dl.util.concurrent.Sync lock)
          Release the lock.
static void release(EDU.oswego.cs.dl.util.concurrent.Sync lock)
          Release the lock.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

acquire

public static void acquire(EDU.oswego.cs.dl.util.concurrent.Sync lock)
Release the lock.

Parameters:
lock -

release

public static void release(EDU.oswego.cs.dl.util.concurrent.Sync lock)
Release the lock.

Parameters:
lock -