Package io.micronaut.function.executor
Class DefaultFunctionExitHandler
java.lang.Object
io.micronaut.function.executor.DefaultFunctionExitHandler
- All Implemented Interfaces:
FunctionExitHandler
Default implementation that will exit using
System.exit(int)
.- Since:
- 1.0
- Author:
- graemerocher
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
exitWithError
(Exception error, boolean debug) Exit the function with an error.void
Exit the function indicating no data was supplied.void
Exit the function with success.
-
Constructor Details
-
DefaultFunctionExitHandler
public DefaultFunctionExitHandler()
-
-
Method Details
-
exitWithError
Description copied from interface:FunctionExitHandler
Exit the function with an error.- Specified by:
exitWithError
in interfaceFunctionExitHandler
- Parameters:
error
- The errordebug
- Whether to output debug information before exiting
-
exitWithSuccess
public void exitWithSuccess()Description copied from interface:FunctionExitHandler
Exit the function with success.- Specified by:
exitWithSuccess
in interfaceFunctionExitHandler
-
exitWithNoData
public void exitWithNoData()Description copied from interface:FunctionExitHandler
Exit the function indicating no data was supplied.- Specified by:
exitWithNoData
in interfaceFunctionExitHandler
-