
Package ca.uhn.fhir.util
Class AsyncUtil
- java.lang.Object
-
- ca.uhn.fhir.util.AsyncUtil
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
awaitLatchAndIgnoreInterrupt(CountDownLatch theInitialCollectionLatch, long theTime, TimeUnit theTimeUnit)
static boolean
awaitLatchAndThrowInternalErrorExceptionOnInterrupt(CountDownLatch theInitialCollectionLatch, long theTime, TimeUnit theTimeUnit)
static boolean
sleep(long theMillis)
Calls Thread.sleep and if an InterruptedException occurs, logs a warning but otherwise continues
-
-
-
Method Detail
-
sleep
public static boolean sleep(long theMillis)
Calls Thread.sleep and if an InterruptedException occurs, logs a warning but otherwise continues- Parameters:
theMillis
- The number of millis to sleep- Returns:
- Did we sleep the whole amount
-
awaitLatchAndThrowInternalErrorExceptionOnInterrupt
public static boolean awaitLatchAndThrowInternalErrorExceptionOnInterrupt(CountDownLatch theInitialCollectionLatch, long theTime, TimeUnit theTimeUnit)
-
awaitLatchAndIgnoreInterrupt
public static boolean awaitLatchAndIgnoreInterrupt(CountDownLatch theInitialCollectionLatch, long theTime, TimeUnit theTimeUnit)
-
-