org.codehaus.wadi.gridstate.impl
Class StupidLockManager

java.lang.Object
  extended byorg.codehaus.wadi.gridstate.impl.StupidLockManager
All Implemented Interfaces:
LockManager

public class StupidLockManager
extends Object
implements LockManager

Creates and reuses, on-the-fly, a lock for a given Key, but will never destroy the lock - temporary solution...

Author:
jules

Field Summary
protected static Log _log
           
protected  String _prefix
           
protected  Map _syncs
           
 
Constructor Summary
StupidLockManager(String prefix)
           
 
Method Summary
 Sync acquire(Object key)
           
 Sync acquire(Object key, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_log

protected static final Log _log

_prefix

protected String _prefix

_syncs

protected Map _syncs
Constructor Detail

StupidLockManager

public StupidLockManager(String prefix)
Method Detail

acquire

public Sync acquire(Object key)
Specified by:
acquire in interface LockManager

acquire

public Sync acquire(Object key,
                    Object value)


Copyright © 2004-2008 Core Developers Network Ltd.. All Rights Reserved.