From e0d6d67be8d20e0297998b4fda444f31d74ff3cd Mon Sep 17 00:00:00 2001 From: Venkata Dinesh Date: Mon, 25 Mar 2019 00:46:40 +0530 Subject: [PATCH] Change method name from recordHandler to handleRequest The method name for Java8 implementation must be handleRequest instead of recordHandler according to the source code https://github.com/aws/aws-lambda-java-libs/blob/master/aws-lambda-java-core/src/main/java/com/amazonaws/services/lambda/runtime/RequestHandler.java Doing this fixes the compilation error for the sample code. --- doc_source/with-kinesis-create-package.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc_source/with-kinesis-create-package.md b/doc_source/with-kinesis-create-package.md index 70e5733c..53ecf8ae 100644 --- a/doc_source/with-kinesis-create-package.md +++ b/doc_source/with-kinesis-create-package.md @@ -48,7 +48,7 @@ import com.amazonaws.services.lambda.runtime.events.KinesisEvent.KinesisEventRec public class ProcessKinesisRecords implements RequestHandler{ @Override - public Void recordHandler(KinesisEvent event, Context context) + public Void handleRequest(KinesisEvent event, Context context) { for(KinesisEventRecord rec : event.getRecords()) { System.out.println(new String(rec.getKinesis().getData().array())); @@ -158,4 +158,4 @@ func handler(ctx context.Context, kinesisEvent events.KinesisEvent) { } ``` -Build the executable with `go build` and create a deployment package\. For instructions, see [AWS Lambda Deployment Package in Go](lambda-go-how-to-create-deployment-package.md)\. \ No newline at end of file +Build the executable with `go build` and create a deployment package\. For instructions, see [AWS Lambda Deployment Package in Go](lambda-go-how-to-create-deployment-package.md)\.