@Component public class JobQueue extends Object
| 构造器和说明 |
|---|
JobQueue() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
main(String[] args) |
boolean |
offer(com.lww.sparrow.task.domain.bean.JobQueueBean jobQueueBean)
添加一个元素并返回true 如果队列已满,则返回false
|
boolean |
offerAll(List<com.lww.sparrow.task.domain.bean.JobQueueBean> jobQueueBeans)
增加 如果队列已满,则抛出一个IIIegaISlabEepeplian异常
|
com.lww.sparrow.task.domain.bean.JobQueueBean |
peek()
返回队列头部的元素 如果队列为空,则返回null
|
com.lww.sparrow.task.domain.bean.JobQueueBean |
poll()
移除并返问队列头部的元素 如果队列为空,则返回null
|
int |
size()
添加一个元素并返回true 如果队列已满,则返回false
|
public static void main(String[] args)
public com.lww.sparrow.task.domain.bean.JobQueueBean peek()
public com.lww.sparrow.task.domain.bean.JobQueueBean poll()
public boolean offer(com.lww.sparrow.task.domain.bean.JobQueueBean jobQueueBean)
public boolean offerAll(List<com.lww.sparrow.task.domain.bean.JobQueueBean> jobQueueBeans)
public int size()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.