MENU

Fun & Interesting

Java BlockingQueue

Jakob Jenkov 45,521 4 years ago
Video Not Working? Fix It Now

The Java BlockingQueue interface represents a queue which can block threads inserting elements into the queue if the BlockingQueue is full, or thread removing elements from the queue if the BlockingQueue is empty. Chapters: 0:00 Java BlockingQueue introduction 1:43 BlockingQueue interface implementations 2:11 BlockingQueue basic usage 3:27 Producer Consumer example 7:10 BlockingQueue enqueue methods 10:18 BlockingQueue dequeue methods 13:25 BlockingQueue drainTo() methods 14:42 BlockingQueue peek methods 15:53 BlockingQueue size(), remainingCapacity() and contains() methods Java BlockingQueue tutorial - text: http://tutorials.jenkov.com/java-util-concurrent/blockingqueue.html Java Concurrency tutorial - text / video playlist: http://tutorials.jenkov.com/java-concurrency/index.html https://www.youtube.com/playlist?list=PLL8woMHwr36EDxjUoCzboZjedsnhLP1j4 Java Queue tutorial - text / video: http://tutorials.jenkov.com/java-collections/queue.html https://www.youtube.com/watch?v=Gpu52H4yCMM&list=PLL8woMHwr36HmQfxqqqxns5GexTNmxFqK&index=5

Comment