summaryrefslogtreecommitdiff
path: root/java/src/MessageQueue.java
diff options
context:
space:
mode:
authoreea1 <eea1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-05-10 20:12:43 +0000
committereea1 <eea1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-05-10 20:12:43 +0000
commitc01ce850adaf528342fcdbb74e0965b2ec416a58 (patch)
treec30bdc92756af9d00d17d9fd02db35866964c9e6 /java/src/MessageQueue.java
parent5156f7eed11b42486efa22694c067a93907dfdf1 (diff)
downloadATCD-c01ce850adaf528342fcdbb74e0965b2ec416a58.tar.gz
Fixed most of the javadoc commenting problems. To make it perfect, all
the source files would have to exist in a directory structure identical to their package names. With these changes, though, people can still view the packages, classes, and methods correctly. I mainly corrected the @see and @exception statements.
Diffstat (limited to 'java/src/MessageQueue.java')
-rw-r--r--java/src/MessageQueue.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/java/src/MessageQueue.java b/java/src/MessageQueue.java
index f71c91ca857..e25fdc65238 100644
--- a/java/src/MessageQueue.java
+++ b/java/src/MessageQueue.java
@@ -65,7 +65,8 @@ class NotEmptyCondition extends TimedWait
* consiste of <tt>MessageBlock</tt>s.
*</blockquote>
*
- *@see MessageBlock,TimeValue
+ *@see MessageBlock
+ *@see TimeValue
*/
public class MessageQueue
{
@@ -116,6 +117,8 @@ public class MessageQueue
* Enqueue a <MessageBlock> into the <MessageQueue> in accordance
* with its <msgPriority> (0 is lowest priority). Note that the
* call will block (unless the queue has been deactivated).
+ *
+ *@exception java.lang.InterruptedException Interrupted while accessing queue
*@param newItem item to enqueue onto the Message Queue
*@return -1 on failure, else the number of items still on the queue.
*/
@@ -134,6 +137,7 @@ public class MessageQueue
* (unless operation completes before)
*@return -1 on failure, else the number of items still on the
* queue.
+ *@exception java.lang.InterruptedException Interrupted while accessing queue
*/
public synchronized int enqueue (MessageBlock newItem,
TimeValue tv) throws InterruptedException
@@ -169,6 +173,7 @@ public class MessageQueue
* that the call will block (unless the queue has been deactivated).
*@param newItem item to enqueue onto the Message Queue
*@return -1 on failure, else the number of items still on the queue.
+ *@exception java.lang.InterruptedException Interrupted while accessing queue
*/
public synchronized int enqueueTail (MessageBlock newItem) throws InterruptedException
{
@@ -183,6 +188,7 @@ public class MessageQueue
*@param tv amount of time (TimeValue) to wait before returning
* (unless operation completes before)
*@return -1 on failure, else the number of items still on the queue.
+ *@exception java.lang.InterruptedException Interrupted while accessing queue
*/
public synchronized int enqueueTail (MessageBlock newItem,
TimeValue tv) throws InterruptedException
@@ -218,6 +224,7 @@ public class MessageQueue
* that the call will block (unless the queue has been deactivated).
*@param newItem item to enqueue onto the Message Queue
*@return -1 on failure, else the number of items still on the queue.
+ *@exception java.lang.InterruptedException Interrupted while accessing queue
*/
public synchronized int enqueueHead (MessageBlock newItem) throws InterruptedException
{
@@ -232,6 +239,7 @@ public class MessageQueue
*@param tv amount of time (TimeValue) to wait before returning
* (unless operation completes before)
*@return -1 on failure, else the number of items still on the queue.
+ *@exception java.lang.InterruptedException Interrupted while accessing queue
*/
public synchronized int enqueueHead (MessageBlock newItem,
TimeValue tv) throws InterruptedException
@@ -267,6 +275,7 @@ public class MessageQueue
* <MessageQueue>. Note that the call will block (unless the queue
* has been deactivated).
*@return null on failure, else the <MessageBlock> at the head of queue.
+ *@exception java.lang.InterruptedException Interrupted while accessing queue
*/
public synchronized MessageBlock dequeueHead () throws InterruptedException
{
@@ -278,6 +287,7 @@ public class MessageQueue
* <MessageQueue>. Note that the call will return if <timeout>
* amount of time expires or if the queue has been deactivated.
*@return null on failure, else the <MessageBlock> at the head of queue.
+ *@exception InterruptedException Interrupted while accessing queue
*/
public synchronized MessageBlock dequeueHead (TimeValue tv) throws InterruptedException
{