Settings for an OxApp. Defaults are defined in Settings.Default.
Value parameters
- handleException
-
Callback used for exceptions that are thrown by the application's body, causing the application to terminate with a failed ExitCode. By default the exception's stack trace is printed to stderr (unless a default uncaught exception handler is set).
- handleInterruptedException
-
Callback used for the interrupted exception that might be thrown by the application's body, w.g. when the the application is interrupted using SIGINT/SIGTERM. By default, the handler looks for any exceptions that are not instances of InterruptedException (as this is considered part of "normal" shutdown process), and prints their stack trace to stderr (unless a default uncaught exception handler is set).
- interruptedExitCode
-
This value is returned to the operating system as the exit code when the app receives SIGINT/SIGTERM and shuts itself down gracefully. By default, the value is ExitCode.Success. JVM itself returns code
130
when it receivesSIGINT
. - threadFactory
-
The thread factory that should be used to create threads in Ox scopes (supervised, unsupervised etc.). Useful e.g. when integrating with third-party libraries to propagate context across (virtual) thread boundaries. If left unspecified, the default virtual thread factory is used.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any