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, toArrayclear, element, removecontainsAll, removeAll, retainAll, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclear, containsAll, equals, hashCode, parallelStream, removeAll, removeIf, retainAll, streampublic static <E> FixedQueue<E> create(int maxSize)
public boolean offer(E s)
public boolean isFull()
Copyright © 2025. All rights reserved.