Made postEvent() public so that external entities can add events (like
message events) to a transaction already started on a particular object. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1233 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: DObject.java,v 1.42 2002/03/20 03:19:51 mdb Exp $
|
||||
// $Id: DObject.java,v 1.43 2002/04/12 00:00:05 mdb Exp $
|
||||
|
||||
package com.threerings.presents.dobj;
|
||||
|
||||
@@ -478,6 +478,19 @@ public class DObject
|
||||
return buf.append("]").toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Posts the specified event either to our dobject manager or to the
|
||||
* compound event for which we are currently transacting.
|
||||
*/
|
||||
public void postEvent (TypedEvent event)
|
||||
{
|
||||
if (_tevent != null) {
|
||||
_tevent.postEvent(event);
|
||||
} else {
|
||||
_omgr.postEvent(event);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Begins a transaction on this distributed object. In some
|
||||
* situations, it is desirable to cause multiple changes to
|
||||
@@ -660,19 +673,6 @@ public class DObject
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Posts the specified event either to our dobject manager or to the
|
||||
* compound event for which we are currently transacting.
|
||||
*/
|
||||
protected void postEvent (TypedEvent event)
|
||||
{
|
||||
if (_tevent != null) {
|
||||
_tevent.postEvent(event);
|
||||
} else {
|
||||
_omgr.postEvent(event);
|
||||
}
|
||||
}
|
||||
|
||||
/** Our object id. */
|
||||
protected int _oid;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user