Example usage for org.apache.commons.collections UnboundedFifoBuffer UnboundedFifoBuffer

List of usage examples for org.apache.commons.collections UnboundedFifoBuffer UnboundedFifoBuffer

Introduction

In this page you can find the example usage for org.apache.commons.collections UnboundedFifoBuffer UnboundedFifoBuffer.

Prototype

public UnboundedFifoBuffer() 

Source Link

Document

Constructs an UnboundedFifoBuffer with the default number of elements.

Usage

From source file:org.apache.excalibur.event.impl.DefaultQueue.java

public DefaultQueue(EnqueuePredicate predicate) {
    setEnqueuePredicate(predicate);// w w w . j a v  a2s.c  o m

    m_mutex = new ReentrantLock();
    m_elements = new UnboundedFifoBuffer();
    m_reserve = 0;
    m_maxSize = -1;
}