public interface FullWaitQueue<T>
Modifier and Type | Method and Description |
---|---|
boolean |
add(T t)
write
向队列尾添加一个元素,如果队列已经满了,则等待一段时间
|
void |
clear() |
boolean |
isEmpty() |
T |
poll()
read
Retrieves and removes the head of this queue,
or returns
null if this queue is empty. |
int |
size() |
boolean add(T t)
t
- T poll()
null
if this queue is empty.null
if this queue is emptyvoid clear()
int size()
boolean isEmpty()
Copyright © 2021. All rights reserved.