public static class RepUtils.ExceptionAwareCountDownLatch extends CountDownLatch
| Constructor and Description |
|---|
ExceptionAwareCountDownLatch(EnvironmentImpl envImpl,
int count) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
await(long timeout,
TimeUnit unit)
Deprecated.
|
void |
awaitOrException() |
boolean |
awaitOrException(long timeout,
TimeUnit unit)
Blocks, waiting for the latch to count down to zero, or until an
Exception is provided. |
void |
releaseAwait(Exception e)
The method used to free an await, ensuring that it throws an
exception at the awaitOrException.
|
await, countDown, getCount, toStringpublic ExceptionAwareCountDownLatch(EnvironmentImpl envImpl, int count)
public void releaseAwait(Exception e)
e - the exception to be wrapped in a DatabaseException
and thrown.public boolean awaitOrException(long timeout,
TimeUnit unit)
throws InterruptedException,
DatabaseException
Exception is provided. The exception is thrown in every
thread that is waiting in this method.InterruptedExceptionDatabaseExceptionreleaseAwait(java.lang.Exception)public void awaitOrException()
throws InterruptedException,
DatabaseException
@Deprecated public boolean await(long timeout, TimeUnit unit)
await in class CountDownLatchCopyright © 2024. All rights reserved.