uk.co.mmscomputing.concurrent
Class ArrayBlockingQueue
java.lang.Object
uk.co.mmscomputing.concurrent.ArrayBlockingQueue
public class ArrayBlockingQueue
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buffer
protected java.lang.Object[] buffer
size
protected int size
front
protected int front
rear
protected int rear
fcarry
protected boolean fcarry
rcarry
protected boolean rcarry
empty
protected Semaphore empty
full
protected Semaphore full
pt
protected java.lang.Object pt
gt
protected java.lang.Object gt
ArrayBlockingQueue
public ArrayBlockingQueue(int init)
isEmpty
public boolean isEmpty()
isFull
public boolean isFull()
size
public int size()
remainingCapacity
public int remainingCapacity()
add
protected void add(java.lang.Object v)
put
public void put(java.lang.Object v)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
offer
public boolean offer(java.lang.Object v)
offer
public boolean offer(java.lang.Object v,
long timeout,
TimeUnit unit)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
remove
protected java.lang.Object remove()
take
public java.lang.Object take()
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
poll
public java.lang.Object poll()
poll
public java.lang.Object poll(long timeout,
TimeUnit unit)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
clear
public void clear()
Copyright © 2011 Direcció General de Tecnologia i Comunicacions. Govern de les Illes Balears. All Rights Reserved.