All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.deepdreams.worker.lambda.LambdaRequestHandler Maven / Gradle / Ivy

There is a newer version: 0.0.16-RELEASE
Show newest version
package tech.deepdreams.worker.lambda;
import com.amazonaws.services.lambda.runtime.Context;
import com.amazonaws.services.lambda.runtime.RequestHandler;
import tech.deepdreams.worker.input.PayrollRequest;
import tech.deepdreams.worker.output.PayrollResponse;

public class LambdaRequestHandler implements RequestHandler {
	
    public PayrollResponse handleRequest(PayrollRequest request, Context context) {
        context.getLogger().log("Request : " + request.getCountryCode() + " - " + request.getAlgoVersion()) ;
        
        LambdaContext lambdaContext = new LambdaContext(request.getCountryCode(), request.getAlgoVersion()) ;
        PayrollResponse response = lambdaContext.calculate(request) ;
        
        context.getLogger().log("Response : " + response) ;
        return response ;
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy