Package org.apache.commons.collections

Examples of org.apache.commons.collections.UnboundedFifoBuffer


     *
     * @return queue.
     */
    protected Buffer createQueueBuffer()
    {
        return new UnboundedFifoBuffer(100);
    }
View Full Code Here


    public void clearEvents(FacesContext context) {
  int len;
  events = new Buffer[len = PhaseId.VALUES.size()];
  for (int i = 0; i < len; i++) {
      events[i] = new UnboundedFifoBuffer();
  }
    }
View Full Code Here

     * Constructor for a managed pool
     */
    public VariableSizePool( ObjectFactory factory, int size, long key )
        throws Exception
    {
        m_buffer = new UnboundedFifoBuffer( size );
        m_factory = factory;
        m_key = key;

        synchronized( m_factory )
        {
View Full Code Here

    public DefaultQueue( EnqueuePredicate predicate )
    {
        setEnqueuePredicate( predicate );

        m_mutex = new ReentrantLock();
        m_elements = new UnboundedFifoBuffer();
        m_reserve = 0;
        m_maxSize = -1;
    }
View Full Code Here

    public DefaultQueue( EnqueuePredicate predicate )
    {
        setEnqueuePredicate( predicate );

        m_mutex = new ReentrantLock();
        m_elements = new UnboundedFifoBuffer();
        m_reserve = 0;
        m_maxSize = -1;
    }
View Full Code Here

     * Constructor for a managed pool
     */
    public VariableSizePool( ObjectFactory factory, int size, long key )
        throws Exception
    {
        m_buffer = new UnboundedFifoBuffer( size );
        m_factory = factory;
        m_key = key;

        synchronized( m_factory )
        {
View Full Code Here

     * Constructor for a managed pool
     */
    public VariableSizePool( ObjectFactory factory, int size, long key )
        throws Exception
    {
        m_buffer = new UnboundedFifoBuffer( size );
        m_factory = factory;
        m_key = key;

        synchronized( m_factory )
        {
View Full Code Here

    public DefaultQueue( EnqueuePredicate predicate )
    {
        setEnqueuePredicate( predicate );

        m_mutex = new ReentrantLock();
        m_elements = new UnboundedFifoBuffer();
        m_reserve = 0;
        m_maxSize = -1;
    }
View Full Code Here

TOP

Related Classes of org.apache.commons.collections.UnboundedFifoBuffer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.