
Package ca.uhn.fhir.util
Class AsyncUtil
java.lang.Object
ca.uhn.fhir.util.AsyncUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanawaitLatchAndIgnoreInterrupt(CountDownLatch theInitialCollectionLatch, long theTime, TimeUnit theTimeUnit) static booleanawaitLatchAndThrowInternalErrorExceptionOnInterrupt(CountDownLatch theInitialCollectionLatch, long theTime, TimeUnit theTimeUnit) static booleansleep(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)
-