接口 FullWaitQueue<T>

所有已知实现类:
TioFullWaitQueue

public interface FullWaitQueue<T>
满员等待队列
作者:
tanyaowu 2019年9月28日 上午9:36:45
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
    add(T t)
    write 向队列尾添加一个元素,如果队列已经满了,则等待一段时间
    void
     
    boolean
     
    read Retrieves and removes the head of this queue, or returns null if this queue is empty.
    int
     
  • 方法详细资料

    • add

      boolean add(T t)
      write 向队列尾添加一个元素,如果队列已经满了,则等待一段时间
      参数:
      t -
      返回:
    • poll

      T poll()
      read Retrieves and removes the head of this queue, or returns null if this queue is empty.
      返回:
      the head of this queue, or null if this queue is empty
    • clear

      void clear()
    • size

      int size()
    • isEmpty

      boolean isEmpty()