Package dev.restate.sdk.lambda
Class BaseRestateLambdaHandler
java.lang.Object
dev.restate.sdk.lambda.BaseRestateLambdaHandler
- All Implemented Interfaces:
com.amazonaws.services.lambda.runtime.RequestHandler<com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent,
com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent>
public abstract class BaseRestateLambdaHandler
extends Object
implements com.amazonaws.services.lambda.runtime.RequestHandler<com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent,com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent>
Base implementation of a Lambda handler to execute restate services
Implementation of AWS Lambda RequestHandler
for serving Restate functions.
Restate can invoke Lambda functions directly or through AWS API gateway. For both cases, it will invoke the Lambda using the same envelope of an API Gateway request/response. See Restate Lambda documentation for more details.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent
handleRequest
(com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent input, com.amazonaws.services.lambda.runtime.Context context) abstract void
register
(RestateLambdaEndpointBuilder builder) Configure your services in this method.
-
Constructor Details
-
BaseRestateLambdaHandler
protected BaseRestateLambdaHandler()
-
-
Method Details
-
register
Configure your services in this method. -
handleRequest
public com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent handleRequest(com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent input, com.amazonaws.services.lambda.runtime.Context context) - Specified by:
handleRequest
in interfacecom.amazonaws.services.lambda.runtime.RequestHandler<com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent,
com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent>
-