Skip to content

Commit e0d6d67

Browse files
authored
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.
1 parent ec610cc commit e0d6d67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc_source/with-kinesis-create-package.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ import com.amazonaws.services.lambda.runtime.events.KinesisEvent.KinesisEventRec
4848
4949
public class ProcessKinesisRecords implements RequestHandler<KinesisEvent, Void>{
5050
@Override
51-
public Void recordHandler(KinesisEvent event, Context context)
51+
public Void handleRequest(KinesisEvent event, Context context)
5252
{
5353
for(KinesisEventRecord rec : event.getRecords()) {
5454
System.out.println(new String(rec.getKinesis().getData().array()));
@@ -158,4 +158,4 @@ func handler(ctx context.Context, kinesisEvent events.KinesisEvent) {
158158
}
159159
```
160160

161-
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)\.
161+
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)\.

0 commit comments

Comments
 (0)