com.ziclix.python.sql.util.Queue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jython-slim Show documentation
Show all versions of jython-slim Show documentation
Jython is an implementation of the high-level, dynamic, object-oriented
language Python written in 100% Pure Java, and seamlessly integrated with
the Java platform. It thus allows you to run Python on any Java platform.
/*
* 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