Class AWSLambda
- java.lang.Object
-
- com.amazonaws.services.lambda.runtime.api.client.AWSLambda
-
public class AWSLambda extends Object
The entrypoint of this class isstartRuntime(java.lang.String). It performs two main tasks:1. loads the user's handler.
2. enters the Lambda runtime loop which handles function invocations as defined in the Lambda Custom Runtime API.Once initialized,
startRuntime(java.lang.String)will halt only if an irrecoverable error occurs.
-
-
Field Summary
Fields Modifier and Type Field Description protected static URLClassLoadercustomerClassLoader
-
Constructor Summary
Constructors Constructor Description AWSLambda()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetEnvOrExit(String envVariableName)static voidmain(String[] args)static voidsetupRuntimeLogger(com.amazonaws.services.lambda.runtime.LambdaLogger lambdaLogger)
-
-
-
Field Detail
-
customerClassLoader
protected static URLClassLoader customerClassLoader
-
-
Method Detail
-
setupRuntimeLogger
public static void setupRuntimeLogger(com.amazonaws.services.lambda.runtime.LambdaLogger lambdaLogger) throws ClassNotFoundException, IllegalAccessException, NoSuchFieldException
-
main
public static void main(String[] args)
-
-