Retrieve an unregistered runtime object

  1. Invoke RuntimeStore.waitFor() to wait for registration of a runtime object to complete. If the runtime object with the specified ID does not exist, waitFor() blocks for a maximum of MAX_WAIT_MILLIS.
  2. Create code for handling exceptions.
    RuntimeStore store = RuntimeStore.getRuntimeStore();
    try {
    Object obj = store.waitFor(0x60ac754bc0867248L);
    } catch(ControlledAccessException e) {
    } catch(RuntimeException e) {
    }
    

Was this information helpful? Send us your comments.