public class SimpleGate
extends java.lang.Object
open()
.Constructor and Description |
---|
SimpleGate() |
Modifier and Type | Method and Description |
---|---|
void |
await()
Waits for the gate to open.
|
boolean |
await(long time,
java.util.concurrent.TimeUnit unit)
Waits silently for the gate to open or the specified time to elapse.
|
void |
awaitTimingOut(long time,
java.util.concurrent.TimeUnit unit)
Same as
await() but throws a TimeoutException if the
gate was not opened in time. |
void |
awaitUninterruptibly() |
boolean |
isOpen() |
void |
open() |
public final void open()
public final boolean isOpen()
public final void await() throws java.lang.InterruptedException
java.lang.InterruptedException
public final boolean await(long time, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
java.lang.InterruptedException
public final void awaitTimingOut(long time, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
await()
but throws a TimeoutException
if the
gate was not opened in time.java.lang.InterruptedException
java.util.concurrent.TimeoutException
public final void awaitUninterruptibly()
Copyright © 2014 EsprIT-Systems. All Rights Reserved.