Class BlockingLatch
- java.lang.Object
-
- com.linkedin.alpini.base.concurrency.BlockingLatch
-
public class BlockingLatch extends java.lang.Object
Created by acurtis on 10/16/17.
-
-
Constructor Summary
Constructors Constructor Description BlockingLatch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
await()
void
await(long time, java.util.concurrent.TimeUnit unit)
void
awaitUninterruptibly()
void
awaitUninterruptibly(long time, java.util.concurrent.TimeUnit unit)
void
block()
boolean
isBlocking()
void
setBlock(boolean enabled)
void
unblock()
-
-
-
Method Detail
-
await
public final void await() throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
awaitUninterruptibly
public final void awaitUninterruptibly()
-
await
public final void await(long time, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
awaitUninterruptibly
public final void awaitUninterruptibly(long time, java.util.concurrent.TimeUnit unit)
-
unblock
public void unblock()
-
block
public void block()
-
isBlocking
public final boolean isBlocking()
-
setBlock
public void setBlock(boolean enabled)
-
-