Is LinkedBlockingQueue a correct choice for a producer-consumer like scenario?
Posted
by sunnyj
on Stack Overflow
See other posts from Stack Overflow
or by sunnyj
Published on 2010-06-15T11:08:33Z
Indexed on
2010/06/15
11:12 UTC
Read the original article
Hit count: 246
I have a producer-consumer like scenario. Class A produces objects of type E. I have to hold it in a static data structure in class A, because the consumer logic should be handled in a class B, which has no reference to object of A. Is LinkedBlockingQueue the correct data type for the queue? Or are there any better selection for this?
© Stack Overflow or respective owner