All Products
Search
Document Center

Function Compute:How do I configure a handler in a Java runtime?

Last Updated:Aug 14, 2025

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

  1. Log on to the Function Compute console. In the left-side navigation pane, click Functions.

  2. In the top navigation bar, select a region. On the Functions page, click Create Function.

  3. 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 to example.HelloFC::handleRequest.image