Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## edu.emory.mathcs.backport.java.util.concurrent.helpers
Class WaitQueue

    java.lang.Object
      edu.emory.mathcs.backport.java.util.concurrent.helpers.WaitQueue

Direct Known Subclasses:
  FIFOWaitQueue

public abstract class WaitQueue
extends java.lang.Object

Base class for internal queue classes for semaphores, etc. Relies on subclasses to actually implement queue mechanics. NOTE: this class is NOT present in java.util.concurrent.

Nested Class Summary
`static interface` | `WaitQueue.QueuedSync`
`static class` | `WaitQueue.WaitNode`

Constructor Summary
`WaitQueue()`

Method Summary
`abstract WaitQueue.WaitNode` | `extract()`
`abstract int` | `getLength()`
`abstract java.util.Collection` | `getWaitingThreads()`
`abstract boolean` | `hasNodes()`
`abstract void` | `insert(WaitQueue.WaitNode w)`
`abstract boolean` | `isWaiting(java.lang.Thread thread)`
`abstract void` | `putBack(WaitQueue.WaitNode w)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### WaitQueue

    public WaitQueue()

Method Detail

### insert

    public abstract void insert(WaitQueue.WaitNode w)

### extract

    public abstract WaitQueue.WaitNode extract()

### putBack

    public abstract void putBack(WaitQueue.WaitNode w)

### hasNodes

    public abstract boolean hasNodes()

### getLength

    public abstract int getLength()

### getWaitingThreads

    public abstract java.util.Collection getWaitingThreads()

### isWaiting

    public abstract boolean isWaiting(java.lang.Thread thread)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD