com.amazonaws.services.lambda.runtime.RequestHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-lambda-java-core Show documentation
Show all versions of aws-lambda-java-core Show documentation
Minimal set of interface definitions for Java support in AWS Lambda
package com.amazonaws.services.lambda.runtime;
import com.amazonaws.services.lambda.runtime.Context;
/**
*
* Lambda request handlers implement AWS Lambda Function application logic using plain old java objects
* as input and output.
*
* @param The input parameter type
* @param The output parameter type
*/
public interface RequestHandler {
/**
* Handles a Lambda Function request
* @param input The Lambda Function input
* @param context The Lambda execution environment context object.
* @return The Lambda Function output
*/
public O handleRequest(I input, Context context);
}