edu.nyu.cs.pdsg.discovery
Class syncQueue

java.lang.Object
  extended byedu.nyu.cs.pdsg.discovery.syncQueue

class syncQueue
extends java.lang.Object

Synchronized wrapper for a TreeSet


Field Summary
private  java.util.TreeSet queue
           
 
Constructor Summary
syncQueue()
           
 
Method Summary
 boolean add(ServiceLocatorCollection service)
           
 ServiceLocatorCollection first()
           
 boolean remove(ServiceLocatorCollection service)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

queue

private java.util.TreeSet queue
Constructor Detail

syncQueue

public syncQueue()
Method Detail

add

public boolean add(ServiceLocatorCollection service)

remove

public boolean remove(ServiceLocatorCollection service)

first

public ServiceLocatorCollection first()
                               throws java.util.NoSuchElementException
Throws:
java.util.NoSuchElementException


Copyright (c) 2002-2003 New York University RLAB