T- - The type of
Task. The full type parameter in the interface's signature is:
Tasks placed into a custom queue which can be operated by producers or consumers in one or more
void enqueue(T task) throws InterruptedException
Threadis blocked until capacity in the queue has been released.
T dequeue() throws InterruptedException
Threadis blocked until a
Taskis added to the queue and it is no longer empty.
Copyright © 2020. All rights reserved.