类 NotifyLimitQueue<E>

  • 类型参数:
    E - 指定范形

    public class NotifyLimitQueue<E>
    extends java.lang.Object
    带回调的定长队列
    • 方法详细资料

      • offer

        public boolean offer​(E obj)
        入队
        参数:
        obj - 入队参数
        返回:
        boolean
      • size

        public int size()
        队列容量
        返回:
        队列容量
      • clear

        public void clear()
        清空队列内容