org.fjank.jcache.persistence
Class PurgatoryLockManager

java.lang.Object
  extended byorg.fjank.jcache.persistence.PurgatoryLockManager

public class PurgatoryLockManager
extends java.lang.Object

a manager for purgatorylocks


Constructor Summary
PurgatoryLockManager()
           
 
Method Summary
 void done(java.lang.String id)
          Release the write lock previously placed on the specified resource.
 void lock(java.lang.String id)
          Adds/Creates a write lock on the specified resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PurgatoryLockManager

public PurgatoryLockManager()
Method Detail

lock

public void lock(java.lang.String id)
Adds/Creates a write lock on the specified resource.

Parameters:
id - the id to lock

done

public final void done(java.lang.String id)
                throws DiskCacheException
Release the write lock previously placed on the specified resource.

Parameters:
id - the id to release the lock for.
Throws:
DiskCacheException - if exceptions occur.


Copyright © 2002-2004 Hosted by SourceForge. All Rights Reserved.