public class ConcurrentQueue<T>
extends java.lang.Object
https://stackoverflow.com/questions/33195290/producer-consumer-model-using-javasynchronized-but-always-run-the-same-thread
for Producer-Consumer pattern.Constructor and Description |
---|
ConcurrentQueue(int capacity) |
Modifier and Type | Method and Description |
---|---|
T |
dequeue() |
void |
enqueue(T item) |
Copyright © 2007-2020 EDIT. All Rights Reserved.