From 5379787dc5b875568ccbe03d87c6e9c0c3376d02 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Fri, 12 Apr 2002 00:00:05 +0000 Subject: [PATCH] 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 --- .../com/threerings/presents/dobj/DObject.java | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/java/com/threerings/presents/dobj/DObject.java b/src/java/com/threerings/presents/dobj/DObject.java index 8c940393d..5a2f779d8 100644 --- a/src/java/com/threerings/presents/dobj/DObject.java +++ b/src/java/com/threerings/presents/dobj/DObject.java @@ -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;