Shutdown the app either safely or quickly.
Shutdown the app either safely or quickly. The app is killed safely by
killing the virtual machine that the app runs in after finalizing all
Object
s created by the app. The app is killed quickly by abruptly
killing the process that the virtual machine that runs the app runs in
without finalizing all Object
s created by the app. Whether the
app is killed safely or quickly the app will be completely created as a
new app in a new virtual machine running in a new process if the user
starts the app again.
<P> <B>NOTE:</B> The app will not be killed until all of its threads have closed if it is killed safely. </P>
<P> <B>NOTE:</B> All threads running under the process will be abruptly killed when the app is killed quickly. This can lead to various issues related to threading. For example, if one of those threads was making multiple related changes to the database, then it may have committed some of those changes but not all of those changes when it was abruptly killed. </P>
Primitive boolean which indicates whether the app should be exited safely or quickly killed. If true then the app will be exited safely. Otherwise it will be killed quickly.