All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----edu.utah.janos.nodeos.CommQueue
Summary |
public final class CommQueue extends java.lang.Object { // Fields 1 private final Vector elements; // Constructors 1 public CommQueue(); // Methods 3 private static CommSpaceElement copy(CommSpaceElement); public void enqueue(CommSpaceElement); public CommSpaceElement waitToTake() throws InterruptedException; }
A shareable FIFO queue of CommSpaceElements.
XXX The underlying Vector object is shared, and potentially re-allocated by whomever does an add. Replace with a linked list of CommSpaceElements.
Cross Reference |
Fields |
· elements | Summary | Top |
private final Vector elements
Constructors |
· CommQueue | Summary | Top |
public CommQueue()
Default constructor
Methods |
· enqueue | Summary | Top |
public void enqueue(CommSpaceElement elem)
XXX implicit allocation in elements.addElement().
· copy | Summary | Top |
private static CommSpaceElement copy(CommSpaceElement e)
XXX is it necessary to copy the CommSpaceElement out of the CommSpace??
· waitToTake | Summary | Top |
public CommSpaceElement waitToTake() throws InterruptedException
XXX implicit allocation in elements.removeElementAt() (downsizing).
May throw InterruptedException if the wait() is interrupted. The caller will have to restart the waitToTake().
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7