Added a method which can be used to determine if an object is currently
part of a transaction. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1416 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: DObject.java,v 1.43 2002/04/12 00:00:05 mdb Exp $
|
// $Id: DObject.java,v 1.44 2002/05/31 20:47:55 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.presents.dobj;
|
package com.threerings.presents.dobj;
|
||||||
|
|
||||||
@@ -567,6 +567,15 @@ public class DObject
|
|||||||
_tevent.commit();
|
_tevent.commit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns true if this object is in the middle of a transaction or
|
||||||
|
* false if it is not.
|
||||||
|
*/
|
||||||
|
public boolean inTransaction ()
|
||||||
|
{
|
||||||
|
return (_tevent != null);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cancels the transaction in which this distributed object is
|
* Cancels the transaction in which this distributed object is
|
||||||
* involved.
|
* involved.
|
||||||
|
|||||||
Reference in New Issue
Block a user