Files
doc-exports/docs/fg/umn/functiongraph_01_0418.html
liusiying01 904c1aad8b FG UMN 20250526 version
Reviewed-by: Mützel, Andrea <andrea.muetzel@t-systems.com>
Co-authored-by: liusiying01 <liusiying@huawei.com>
Co-committed-by: liusiying01 <liusiying@huawei.com>
2025-10-06 15:14:20 +00:00

6.5 KiB

Configuring Class Isolation and Pre-stop for Java Functions

Class isolation is used to load your code and dependencies using an independent class loader if they conflict with the runtime dependencies.

Pre-stop is used to call a callback function before FunctionGraph stops the current function instance.

Constraints

Only Java functions can be configured with class isolation and pre-stop.

Configuring Class Isolation for a Java Function

  1. Log in to the FunctionGraph console. In the navigation pane, choose Functions > Function List.
  2. Click the name of a function.
  3. Choose Configuration > Advanced Settings.
  4. Enable Class Isolation and click Save.

Configuring Pre-stop for a Java Function

  1. Log in to the FunctionGraph console. In the navigation pane, choose Functions > Function List.
  2. Click the name of a function.
  3. On the Configuration tab, click Lifecycle.
  4. Enable Pre-stop and set the related parameters.
    Table 1 Pre-stop configuration

    Parameter

    Description

    Pre-stop Timeout (s)

    Timeout for executing the callback function before the current function instance is stopped. The value is an integer ranging from 1 to 90.

    Pre-stop Handler

    Handler of the callback function, which can contain a maximum of 128 characters in the format of "[package name].[class name].[execution function name]".

  5. Click Save.