Friday, July 20, 2018

What do you mean by CountDownLatch in java?

Problem statement:
  • Class CountDownLatch:
  1. java.util.concurrent
  2. java.util.concurrent.CountDownLatch extends java.lang.Object
  3. Since Java 1.5
  • Constructor Summary:
  1. CountDownLatch(int count)
Constructs a CountDownLatch initialized with the given count.
  • Method Summary:
  1. await(): void
  2. await(long timeout, TimeUnit unit): boolean
  3. countDown(): void
  4. getCount(): long
  5. toString(): String

No comments:

Post a Comment

How to run standalone mock server on local laptop

 Please download the standalone wiremock server from Direct download section at the bottom of the page.  Download and installation Feel fre...