src.com.ziclix.python.sql.util.Queue Maven / Gradle / Ivy
/*
* Jython Database Specification API 2.0
*
*
* Copyright (c) 2001 brian zimmer
*
*/
package com.ziclix.python.sql.util;
import java.util.LinkedList;
/**
* This queue blocks until closed or an element is enqueued. If the queue
* reaches capacity, the dequeue thread gets priority in order to bring the
* queue size under a certain threshold.
*
* @author brian zimmer
*/
public class Queue {
/**
* Field closed
*/
protected boolean closed;
/**
* Field queue
*/
protected LinkedList
© 2015 - 2025 Weber Informatics LLC | Privacy Policy