T
- Type of free listpublic class FreeQueue<T>
extends java.lang.Object
Constructor and Description |
---|
FreeQueue(int capacity) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close()
Close queue and cause any takers to wake up and return null.
|
boolean |
isEmpty() |
void |
offer(T obj) |
int |
size() |
T |
take()
Takes the from queue.
|
public void offer(T obj)
public T take()
public boolean isEmpty()
public int available()
public int size()
public void close()
Copyright (C) 2003-2021 SQLstream, Inc.