net.sf.fmj.utility
Class RingBuffer

java.lang.Object
  extended by net.sf.fmj.utility.RingBuffer

public class RingBuffer
extends java.lang.Object

RingBuffer

Version:
1-1-alpha3
Author:
mgodehardt

Constructor Summary
RingBuffer(int maxItems)
           
 
Method Summary
 java.lang.Object get()
           
 int getOverrunCounter()
           
 boolean isEmpty()
           
 boolean isFull()
           
 java.lang.Object peek()
           
 boolean put(java.lang.Object item)
           
 void resize(int maxItems)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RingBuffer

public RingBuffer(int maxItems)
Method Detail

resize

public void resize(int maxItems)

size

public int size()

getOverrunCounter

public int getOverrunCounter()

isEmpty

public boolean isEmpty()

isFull

public boolean isFull()

put

public boolean put(java.lang.Object item)

get

public java.lang.Object get()
                     throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

peek

public java.lang.Object peek()