Package com.networknt.aws.lambda.app
Class LambdaStreamApp
- java.lang.Object
-
- com.networknt.aws.lambda.app.LambdaStreamApp
-
- All Implemented Interfaces:
com.amazonaws.services.lambda.runtime.RequestStreamHandler
public class LambdaStreamApp extends Object implements com.amazonaws.services.lambda.runtime.RequestStreamHandler
This is the entry point for the stream lambda function that is responsible for cross-cutting concerns for the business Lambda function which is called from the is Lambda function once all cross-cutting concerns are addressed. The lambda function endpoint receives the InputStream and the OutputStream.- Author:
- Steve Hu
-
-
Field Summary
Fields Modifier and Type Field Description static LambdaAppConfigCONFIG
-
Constructor Summary
Constructors Constructor Description LambdaStreamApp()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleRequest(InputStream inputStream, OutputStream outputStream, com.amazonaws.services.lambda.runtime.Context context)
-
-
-
Field Detail
-
CONFIG
public static final LambdaAppConfig CONFIG
-
-
Method Detail
-
handleRequest
public void handleRequest(InputStream inputStream, OutputStream outputStream, com.amazonaws.services.lambda.runtime.Context context) throws IOException
- Specified by:
handleRequestin interfacecom.amazonaws.services.lambda.runtime.RequestStreamHandler- Throws:
IOException
-
-