Whitespace
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6126 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -22,12 +22,10 @@
|
||||
package com.threerings.presents.dobj;
|
||||
|
||||
/**
|
||||
* The various listener interfaces (e.g. {@link EventListener}, {@link
|
||||
* AttributeChangeListener}, etc.) all extend this base interface so that
|
||||
* the distributed object can check to make sure when an object is adding
|
||||
* itself as a listener of some sort that it actually implements at least
|
||||
* one of the listener interfaces. Thus, all listener interfaces must
|
||||
* extend this one.
|
||||
* The various listener interfaces (e.g. {@link EventListener}, {@link AttributeChangeListener},
|
||||
* etc.) all extend this base interface so that the distributed object can check to make sure when
|
||||
* an object is adding itself as a listener of some sort that it actually implements at least one
|
||||
* of the listener interfaces. Thus, all listener interfaces must extend this one.
|
||||
*/
|
||||
public interface ChangeListener
|
||||
{
|
||||
|
||||
@@ -28,16 +28,15 @@ import com.threerings.util.StreamableArrayList;
|
||||
import com.threerings.presents.net.Transport;
|
||||
|
||||
/**
|
||||
* Used to manage and submit groups of events on a collection of
|
||||
* distributed objects in a single transaction.
|
||||
* Used to manage and submit groups of events on a collection of distributed objects in a single
|
||||
* transaction.
|
||||
*
|
||||
* @see DObject#startTransaction
|
||||
*/
|
||||
public class CompoundEvent extends DEvent
|
||||
{
|
||||
/**
|
||||
* Constructs a blank compound event in preparation for
|
||||
* unserialization.
|
||||
* Constructs a blank compound event in preparation for unserialization.
|
||||
*/
|
||||
public CompoundEvent ()
|
||||
{
|
||||
@@ -62,9 +61,8 @@ public class CompoundEvent extends DEvent
|
||||
}
|
||||
|
||||
/**
|
||||
* Posts an event to this transaction. The event will be delivered as
|
||||
* part of the entire transaction if it is committed or discarded if
|
||||
* the transaction is cancelled.
|
||||
* Posts an event to this transaction. The event will be delivered as part of the entire
|
||||
* transaction if it is committed or discarded if the transaction is cancelled.
|
||||
*/
|
||||
public void postEvent (DEvent event)
|
||||
{
|
||||
@@ -73,6 +71,7 @@ public class CompoundEvent extends DEvent
|
||||
|
||||
/**
|
||||
* Returns the list of events contained within this compound event.
|
||||
*
|
||||
* Don't mess with it.
|
||||
*/
|
||||
public List<DEvent> getEvents ()
|
||||
@@ -81,10 +80,9 @@ public class CompoundEvent extends DEvent
|
||||
}
|
||||
|
||||
/**
|
||||
* Commits this transaction by posting this event to the distributed
|
||||
* object event queue. All participating dobjects will have their
|
||||
* transaction references cleared and will go back to normal
|
||||
* operation.
|
||||
* Commits this transaction by posting this event to the distributed object event queue. All
|
||||
* participating dobjects will have their transaction references cleared and will go back to
|
||||
* normal operation.
|
||||
*/
|
||||
public void commit ()
|
||||
{
|
||||
@@ -111,8 +109,7 @@ public class CompoundEvent extends DEvent
|
||||
}
|
||||
|
||||
/**
|
||||
* Cancels this transaction. All events posted to this transaction
|
||||
* will be discarded.
|
||||
* Cancels this transaction. All events posted to this transaction will be discarded.
|
||||
*/
|
||||
public void cancel ()
|
||||
{
|
||||
@@ -184,8 +181,7 @@ public class CompoundEvent extends DEvent
|
||||
}
|
||||
}
|
||||
|
||||
/** The object manager that we'll post ourselves to when we're
|
||||
* committed. */
|
||||
/** The object manager that we'll post ourselves to when we're committed. */
|
||||
protected transient DObjectManager _omgr;
|
||||
|
||||
/** The object for which we're managing a transaction. */
|
||||
|
||||
@@ -56,8 +56,7 @@ public class StreamableHashSet<E> extends HashSet<E>
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an empty hash set with the default number of hash
|
||||
* buckets.
|
||||
* Constructs an empty hash set with the default number of hash buckets.
|
||||
*/
|
||||
public StreamableHashSet ()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user