/** * Method blocks until all registries are not handling any tasks and are all consistent. * * Note: If you have just modified the registry this method can maybe return immediately if the task is not yet received by the registry controller. So you should prefer the futures of the modification methods for synchronization tasks. * * @throws InterruptedException is thrown in case the thread was externally interrupted. * @throws org.openbase.jul.exception.CouldNotPerformException is thrown if the wait could not be performed. */ public static void waitUntilReady() throws InterruptedException, CouldNotPerformException { CachedUnitRegistryRemote.waitUntilReady(); CachedAgentRegistryRemote.waitUntilReady(); CachedAppRegistryRemote.waitUntilReady(); CachedDeviceRegistryRemote.waitUntilReady(); CachedLocationRegistryRemote.waitUntilReady(); CachedSceneRegistryRemote.waitUntilReady(); CachedUserRegistryRemote.waitUntilReady(); CachedUserActivityRegistryRemote.waitUntilReady(); } }