org.neo4j.graphdb
Interface Lock
- All Known Implementing Classes:
- LockImpl
public interface Lock
An acquired lock on an entity for a transaction, acquired from
Transaction.acquireWriteLock(PropertyContainer)
or
Transaction.acquireReadLock(PropertyContainer)
this lock
can be released manually using release()
. If not released
manually it will be automatically released when the transaction owning
it finishes.
- Author:
- Mattias Persson
Method Summary |
void |
release()
Releases this lock before the transaction finishes. |
release
void release()
- Releases this lock before the transaction finishes. It is an optional
operation and if not called, this lock will be released when the owning
transaction finishes.
- Throws:
IllegalStateException
- if this lock has already been released.
Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.