E
- 指定范形public class NotifyLimitQueue<E>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
NotifyLimitQueue.Listener<E>
队列满对调
|
Constructor and Description |
---|
NotifyLimitQueue(int limit,
NotifyLimitQueue.Listener<E> listener) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
清空队列内容
|
boolean |
offer(E obj)
入队
|
int |
size()
队列容量
|
public NotifyLimitQueue(int limit, NotifyLimitQueue.Listener<E> listener)
public boolean offer(E obj)
obj
- 入队参数public int size()
public void clear()