接口 FullWaitQueue<T>
- 所有已知实现类:
TioFullWaitQueue
public interface FullWaitQueue<T>
满员等待队列
- 作者:
- tanyaowu 2019年9月28日 上午9:36:45
-
方法概要
-
方法详细资料
-
add
write 向队列尾添加一个元素,如果队列已经满了,则等待一段时间- 参数:
t-- 返回:
-
poll
T poll()read Retrieves and removes the head of this queue, or returnsnullif this queue is empty.- 返回:
- the head of this queue, or
nullif this queue is empty
-
clear
void clear() -
size
int size() -
isEmpty
boolean isEmpty()
-