类 NotifyLimitQueue<E>
- java.lang.Object
-
- com.aispeech.common.NotifyLimitQueue<E>
-
- 类型参数:
E
- 指定范形
public class NotifyLimitQueue<E> extends java.lang.Object
带回调的定长队列
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static interface
NotifyLimitQueue.Listener<E>
队列满对调
-
构造器概要
构造器 构造器 说明 NotifyLimitQueue(int limit, NotifyLimitQueue.Listener<E> listener)
-
-
-
构造器详细资料
-
NotifyLimitQueue
public NotifyLimitQueue(int limit, NotifyLimitQueue.Listener<E> listener)
-
-
方法详细资料
-
offer
public boolean offer(E obj)
入队- 参数:
obj
- 入队参数- 返回:
- boolean
-
size
public int size()
队列容量- 返回:
- 队列容量
-
clear
public void clear()
清空队列内容
-
-