1.

What Is Blockingdeque In Java Concurrency?

Answer»

BlockingDeque interface (added in Java 6) is a Deque that PROVIDES additional support for blocking operations. Blocking methods of BlockingDeque interface come in four forms.

  • Throw exception - Methods falling in this category will throw exception if blocked.
  • Return special value - This type of methods will return some value if need to WAIT, like false.
  • Blocks - This type of methods will wait if necessary for space to BECOME available.
  • Times out - This type of methods will block for only a given maximum time limit before giving up.

BlockingDeque is thread safe, does not permit null elements, and MAY (or may not) be capacity-constrained.

BlockingDeque interface (added in Java 6) is a Deque that provides additional support for blocking operations. Blocking methods of BlockingDeque interface come in four forms.

BlockingDeque is thread safe, does not permit null elements, and may (or may not) be capacity-constrained.



Discussion

No Comment Found