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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexitWithError(Exception error, boolean debug) Exit the function with an error.voidExit the function indicating no data was supplied.voidExit the function with success.
-
Constructor Details
-
DefaultFunctionExitHandler
public DefaultFunctionExitHandler()
-
-
Method Details
-
exitWithError
Description copied from interface:FunctionExitHandlerExit the function with an error.- Specified by:
exitWithErrorin interfaceFunctionExitHandler- Parameters:
error- The errordebug- Whether to output debug information before exiting
-
exitWithSuccess
public void exitWithSuccess()Description copied from interface:FunctionExitHandlerExit the function with success.- Specified by:
exitWithSuccessin interfaceFunctionExitHandler
-
exitWithNoData
public void exitWithNoData()Description copied from interface:FunctionExitHandlerExit the function indicating no data was supplied.- Specified by:
exitWithNoDatain interfaceFunctionExitHandler
-