The Lambda function handler is the method in your function code that processes events. When your function is invoked, Lambda runs the handler method. When the handler exits or returns a response, it becomes available to handle another event.
https://docs.aws.amazon.com/lambda/latest/dg/java-handler.html