org.wamblee.concurrency
Class JvmLock

java.lang.Object
  extended by org.wamblee.concurrency.JvmLock
All Implemented Interfaces:
Lock

public class JvmLock
extends java.lang.Object
implements Lock

In memory JVM lock.

Author:
Erik Brakkee

Constructor Summary
JvmLock()
          In-memory lock.
 
Method Summary
 void acquire()
          Acquires the lock.
 void release()
          Releases the lock.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JvmLock

public JvmLock()
In-memory lock.

Method Detail

acquire

public void acquire()
Description copied from interface: Lock
Acquires the lock.

Specified by:
acquire in interface Lock

release

public void release()
Description copied from interface: Lock
Releases the lock.

Specified by:
release in interface Lock


Copyright © 2010. All Rights Reserved.