public class Lock extends Object
Lock is a built-in object which represents that a datastore entity
is locked by the ResourceManager.
This object is used for the distributed locking provided by the Acid House
implementation.| Constructor and Description |
|---|
Lock(String id,
String transaction,
Date timestamp)
Constructs a new
Lock entity with the specified lock id,
the transaction id which allocates this lock and the timestamp when this
lock is allocated. |
public Lock(String id, String transaction, Date timestamp)
Lock entity with the specified lock id,
the transaction id which allocates this lock and the timestamp when this
lock is allocated.id - The lock id.transaction - The transaction id which this lock is allocated.timestamp - The timestamp which this lock is allocated.public String id()
public String transaction()
public Date timestamp()
Copyright © 2009-2014 Eiichiro Uchiumi. All Rights Reserved.