public static class RepUtils.ExceptionAwareCountDownLatch
extends java.util.concurrent.CountDownLatch
Modifier and Type | Field and Description |
---|---|
(package private) EnvironmentImpl |
envImpl |
Constructor and Description |
---|
RepUtils.ExceptionAwareCountDownLatch(EnvironmentImpl envImpl,
int count) |
Modifier and Type | Method and Description |
---|---|
boolean |
await(long timeout,
java.util.concurrent.TimeUnit unit)
Deprecated.
|
void |
awaitOrException() |
boolean |
awaitOrException(long timeout,
java.util.concurrent.TimeUnit unit)
Blocks, waiting for the latch to count down to zero, or until an
Exception is provided. |
void |
releaseAwait(java.lang.Exception exception)
The method used to free an await, ensuring that it throws an
exception at the awaitOrException.
|
final EnvironmentImpl envImpl
public RepUtils.ExceptionAwareCountDownLatch(EnvironmentImpl envImpl, int count)
public void releaseAwait(java.lang.Exception exception)
exception
- the exception to be wrapped in a DatabaseException
and thrown.public boolean awaitOrException(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException, DatabaseException
Exception
is provided. The exception is thrown in every
thread that is waiting in this method.java.lang.InterruptedException
DatabaseException
releaseAwait(java.lang.Exception)
public void awaitOrException() throws java.lang.InterruptedException, DatabaseException
java.lang.InterruptedException
DatabaseException
@Deprecated public boolean await(long timeout, java.util.concurrent.TimeUnit unit)
await
in class java.util.concurrent.CountDownLatch
Copyright (c) 2004-2012 Oracle. All rights reserved.