Package io.micronaut.function.executor
Class DefaultFunctionExitHandler
- java.lang.Object
-
- io.micronaut.function.executor.DefaultFunctionExitHandler
-
- All Implemented Interfaces:
FunctionExitHandler
public class DefaultFunctionExitHandler extends java.lang.Object implements FunctionExitHandler
Default implementation that will exit usingSystem.exit(int).- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description DefaultFunctionExitHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexitWithError(java.lang.Exception error, boolean debug)Exit the function with an error.voidexitWithNoData()Exit the function indicating no data was supplied.voidexitWithSuccess()Exit the function with success.
-
-
-
Method Detail
-
exitWithError
public void exitWithError(java.lang.Exception error, boolean debug)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
-
-