edu.nyu.cs.pdsg.switchboard.clientstreams
Class BlockingQueue

java.lang.Object
  extended byedu.nyu.cs.pdsg.switchboard.clientstreams.BlockingQueue

class BlockingQueue
extends java.lang.Object


Field Summary
protected  boolean openFlag
           
protected  java.util.LinkedList q
           
private  long timeout
           
 
Constructor Summary
(package private) BlockingQueue()
           
 
Method Summary
 void add(java.lang.Object obj)
           
protected  void close()
           
 boolean isOpen()
           
 java.lang.Object remove()
           
 java.lang.Object remove(boolean blocking)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

openFlag

protected boolean openFlag

q

protected java.util.LinkedList q

timeout

private long timeout
Constructor Detail

BlockingQueue

BlockingQueue()
Method Detail

size

public int size()

add

public void add(java.lang.Object obj)

remove

public java.lang.Object remove()
                        throws java.io.IOException
Throws:
java.io.IOException

remove

public java.lang.Object remove(boolean blocking)
                        throws java.io.IOException,
                               java.util.NoSuchElementException
Throws:
java.io.IOException
java.util.NoSuchElementException

isOpen

public boolean isOpen()

close

protected void close()


Copyright (c) 2002-2003 New York University RLAB