org.apache.lenya.transaction
Interface Lockable

All Known Subinterfaces:
Transactionable, Versionable

public interface Lockable

Object that can be locked.

Version:
$Id: Lockable.java 473861 2006-11-12 03:51:14Z gregor $

Method Summary
 Lock getLock()
           
 boolean isLocked()
           
 void lock()
          Locks this object.
 void unlock()
          Unlocks this object.
 

Method Detail

lock

void lock()
          throws TransactionException
Locks this object.

Throws:
TransactionException - if an error occurs.

unlock

void unlock()
            throws TransactionException
Unlocks this object.

Throws:
TransactionException - if an error occurs.

isLocked

boolean isLocked()
                 throws TransactionException
Returns:
if this object is locked.
Throws:
TransactionException - if an error occurs.

getLock

Lock getLock()
Returns:
The lock which is held by this object.


Copyright 1999-2006 Apache Software Foundation. All Rights Reserved.