When you use a Java runtime in Function Compute, you must define a handler. Function Compute executes a function from the handler. This topic describes how to configure a handler for a Java function in the console.
Procedure
Log on to the Function Compute console. In the left-side navigation pane, click Functions.
In the top navigation bar, select a region. On the Functions page, click Create Function.
On the Create Function page, select Event Function. In the Code section, select a Java runtime. In the Advanced Settings section, configure the Handler parameter.
For Java functions, you must specify a handler in the
[Package name].[Class name]::[Method name]format. For example, if your package is named example, the type is HelloFC, and the method name is handleRequest, set the handler toexample.HelloFC::handleRequest.