Package io.github.pellse.util.concurrent
Interface BoundedQueue<E>
public interface BoundedQueue<E>
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E> BoundedQueue<E> static <E> BoundedQueue<E> createBoundedQueue(long capacity) booleanisEmpty()booleanisFull()booleanpoll()longsize()
-
Method Details
-
poll
E poll() -
offer
-
size
long size() -
isEmpty
boolean isEmpty() -
isFull
boolean isFull() -
createBoundedQueue
-
createBoundedQueue
-