Class TaskQueue<E>
Object
com.liferay.portal.kernel.concurrent.TaskQueue<E>
- Author:
- Shuyang Zhou
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
drainTo
(Collection<E> collection) protected ReentrantLock
protected ReentrantLock
boolean
isEmpty()
boolean
poll()
int
boolean
int
size()
take()
-
Constructor Details
-
TaskQueue
public TaskQueue() -
TaskQueue
public TaskQueue(int capacity)
-
-
Method Details
-
drainTo
-
isEmpty
public boolean isEmpty() -
offer
-
poll
-
poll
- Throws:
InterruptedException
-
remainingCapacity
public int remainingCapacity() -
remove
-
size
public int size() -
take
- Throws:
InterruptedException
-
getPutLock
-
getTakeLock
-