Hi - just a quick correction and apology.
In the latest versions I suggested adding a null to the queue to signal a shutdown. I should have tested that first - it doesn't work with a LinkedBlockingQueue. Sorry.
Please refer to the earlier example of queue code that I posted where I added a special String value "Please shut down now", then tested for that value in the queue processor (rather than testing for null). That will work OK.
My apologies.
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
newbie14
0
Posting Pro
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
newbie14
0
Posting Pro
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
newbie14
0
Posting Pro
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
newbie14
0
Posting Pro
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
newbie14
0
Posting Pro
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
newbie14
0
Posting Pro
newbie14
0
Posting Pro
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
newbie14
0
Posting Pro
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
newbie14
0
Posting Pro
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
newbie14
0
Posting Pro
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
newbie14
0
Posting Pro
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.