JThreadKitTM
v1.1.0
(public members only)

com.jthreadkit.fifo
Class ArrayObjectFIFO

java.lang.Object
  |
  +--com.jthreadkit.AbstractSizeMonitored
        |
        +--com.jthreadkit.fifo.AbstractFIFO
              |
              +--com.jthreadkit.fifo.AbstractObjectFIFO
                    |
                    +--com.jthreadkit.fifo.ArrayObjectFIFO
All Implemented Interfaces:
AccessibleLock, BasicFIFO, ObjectFIFO, SimpleShutdown, SizeMonitored, TimedOutExceptionOption

public class ArrayObjectFIFO
extends AbstractObjectFIFO
implements ObjectFIFO

ArrayObjectFIFO is an implementation of the ObjectFIFO interface that stores the items in a single Object[] internally. To allow for easy switching of implementations, you should generally use the interface type as the reference:
  
ObjectFIFO fifo = new ArrayObjectFIFO(35);


Constructor Summary
ArrayObjectFIFO(int initialCapacity)
          Creates a new, empty FIFO queue with the specified capacity.
ArrayObjectFIFO(int initialCapacity, Class elementType, Object lock, boolean useTimedOutException)
           
 
Method Summary
 String toString()
           
 
Methods inherited from class com.jthreadkit.fifo.AbstractObjectFIFO
add, add, addEach, addEach, addEach, addEach, getElementType, peek, peek, peek, peek, peek, peek, peekAll, peekAtLeastOne, peekAtLeastOne, remove, remove, remove, remove, remove, remove, removeAll, removeAtLeastOne, removeAtLeastOne, setCapacity, setElementType
 
Methods inherited from class com.jthreadkit.fifo.AbstractFIFO
skip, skip, skipExactly, skipExactly
 
Methods inherited from class com.jthreadkit.AbstractSizeMonitored
addSizeChangeListener, getCapacity, getLockObject, getSize, isEmpty, isFull, isUseTimedOutExceptionSet, removeSizeChangeListener, setUseTimedOutException, shutdown, shutdownWhenEmpty, waitForSizeToChange, waitForSizeToChange, waitForSizeToClimbTo, waitForSizeToClimbTo, waitForSizeToFallTo, waitForSizeToFallTo, waitUntilEmpty, waitUntilEmpty, waitUntilFull, waitUntilFull, waitUntilSizeInRange, waitUntilSizeInRange, waitUntilSizeIs, waitUntilSizeIs, waitWhileEmpty, waitWhileEmpty, waitWhileFull, waitWhileFull, waitWhileSizeInRange, waitWhileSizeInRange, waitWhileSizeIs, waitWhileSizeIs
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.jthreadkit.fifo.ObjectFIFO
add, add, addEach, addEach, addEach, addEach, getElementType, peek, peek, peek, peek, peek, peek, peekAll, peekAtLeastOne, peekAtLeastOne, remove, remove, remove, remove, remove, remove, removeAll, removeAtLeastOne, removeAtLeastOne, setElementType
 
Methods inherited from interface com.jthreadkit.fifo.BasicFIFO
skip, skip, skipExactly, skipExactly
 
Methods inherited from interface com.jthreadkit.SizeMonitored
addSizeChangeListener, getCapacity, getSize, isEmpty, isFull, removeSizeChangeListener, setCapacity, shutdownWhenEmpty, waitForSizeToChange, waitForSizeToChange, waitForSizeToClimbTo, waitForSizeToClimbTo, waitForSizeToFallTo, waitForSizeToFallTo, waitUntilEmpty, waitUntilEmpty, waitUntilFull, waitUntilFull, waitUntilSizeInRange, waitUntilSizeInRange, waitUntilSizeIs, waitUntilSizeIs, waitWhileEmpty, waitWhileEmpty, waitWhileFull, waitWhileFull, waitWhileSizeInRange, waitWhileSizeInRange, waitWhileSizeIs, waitWhileSizeIs
 
Methods inherited from interface com.jthreadkit.AccessibleLock
getLockObject
 
Methods inherited from interface com.jthreadkit.SimpleShutdown
shutdown
 
Methods inherited from interface com.jthreadkit.TimedOutExceptionOption
isUseTimedOutExceptionSet, setUseTimedOutException
 

Constructor Detail

ArrayObjectFIFO

public ArrayObjectFIFO(int initialCapacity,
                       Class elementType,
                       Object lock,
                       boolean useTimedOutException)

ArrayObjectFIFO

public ArrayObjectFIFO(int initialCapacity)
Creates a new, empty FIFO queue with the specified capacity.
Parameters:
initialCapacity - the number of slots in the FIFO. This number is silently increased to 1 if necessary.
See Also:
AbstractObjectFIFO.setCapacity(int)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

JThreadKitTM
v1.1.0
(public members only)

© Copyright 2000-2001 Programix Incorporated. All rights reserved. JThreadKit home