Request handler for a function in Java
A request handler is a method used to process each Java function call.
When creating a function version, you specify the entry point, i.e., the function that the runtime environment calls as a handler. The entry point name consists of the name of the class containing the handler, e.g., orgexample.Handler
.
The name of the handler file must not contain any .
before the extension, e.g., .handler.java
.
Note
At any given time, one function instance cannot handle more calls than specified in the concurrency parameter. This allows you to use global variables without having to provide data integrity control.
Depending on the programming model, the handler can accept and return different data. For more information about this and available ways to set a request handler, see the Java programming model section.