Lock (Neo4j Community 2.1.0-M01 API)
Date: 2014-02-20

org.neo4j.graphdb

## Interface Lock

-     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

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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.

Copyright © 2002–2014 The Neo4j Graph Database Project. All rights reserved.