Lock (Neo4j Community 1.8.RC1 API)
Date: 2012-09-07

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Neo4j Community
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Method Detail

### 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Neo4j Community
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.