Rice Pastry API

rice.environment.processing.simple
Class WorkQueue

java.lang.Object
  extended byrice.environment.processing.simple.WorkQueue

public class WorkQueue
extends java.lang.Object

Version:
$Id: pretty.settings 2305 2005-03-11 20:22:33Z jeffh $
Author:
Jeff Hoye

Constructor Summary
WorkQueue()
          Constructor for WorkQueue.
WorkQueue(int capacity)
          Constructor for WorkQueue.
 
Method Summary
 WorkRequest dequeue()
          DESCRIBE THE METHOD
 void destroy()
          DESCRIBE THE METHOD
 void enqueue(WorkRequest request)
          DESCRIBE THE METHOD
 int getLength()
          Gets the Length attribute of the WorkQueue object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkQueue

public WorkQueue()
Constructor for WorkQueue.


WorkQueue

public WorkQueue(int capacity)
Constructor for WorkQueue.

Parameters:
capacity - DESCRIBE THE PARAMETER
Method Detail

getLength

public int getLength()
Gets the Length attribute of the WorkQueue object

Returns:
The Length value

enqueue

public void enqueue(WorkRequest request)
DESCRIBE THE METHOD

Parameters:
request - DESCRIBE THE PARAMETER

dequeue

public WorkRequest dequeue()
DESCRIBE THE METHOD

Returns:
DESCRIBE THE RETURN VALUE

destroy

public void destroy()
DESCRIBE THE METHOD


Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection