org.apache.slide.store.tlock
Class TLockManager

java.lang.Object
  extended byorg.apache.slide.store.tlock.TLockManager

public class TLockManager
extends java.lang.Object

Handles t-locks (transient locks) for multi-thread synchronization in the stores.

Version:
$Revision: 1.1.2.1 $
Author:
michael.hartmeier@softwareag.com, peter.nevermann@softwareag.com

Constructor Summary
TLockManager(long timeout)
          Default constructor.
 
Method Summary
 TLock create(int lockType, java.lang.String uri, ResourceId resourceId)
          Creates an aquires a new ResourceLock.
 void lock(ResourceId resourceId, java.lang.String uri, int lockType)
           
 void releaseLocks()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TLockManager

public TLockManager(long timeout)
Default constructor.

Method Detail

lock

public void lock(ResourceId resourceId,
                 java.lang.String uri,
                 int lockType)
          throws TLockedException
Throws:
TLockedException

releaseLocks

public void releaseLocks()

create

public TLock create(int lockType,
                    java.lang.String uri,
                    ResourceId resourceId)
Creates an aquires a new ResourceLock.