Package ca.uhn.fhir.util
Class AsyncUtil
java.lang.Object
ca.uhn.fhir.util.AsyncUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
sleep
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)
-