public class FixedQueue<E> extends ConcurrentLinkedQueue<E> implements Serializable
Constructor and Description |
---|
FixedQueue(int maxSize) |
Modifier and Type | Method and Description |
---|---|
static <E> FixedQueue<E> |
create(int maxSize) |
boolean |
isFull()
队列是否已满
|
boolean |
offer(E s) |
add, addAll, contains, isEmpty, iterator, peek, poll, remove, size, spliterator, toArray, toArray
clear, element, remove
containsAll, removeAll, retainAll, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clear, containsAll, equals, hashCode, parallelStream, removeAll, removeIf, retainAll, stream
public static <E> FixedQueue<E> create(int maxSize)
public boolean offer(E s)
public boolean isFull()
Copyright © 2024. All rights reserved.