@Experimental
public interface ProcessFunction
extends org.apache.flink.api.common.functions.Function
| Modifier and Type | Method and Description |
|---|---|
default void |
close()
Tear-down method for the user code.
|
default void |
open()
Initialization method for the function.
|
default Set<org.apache.flink.api.common.state.StateDeclaration> |
usesStates()
Explicitly declares states upfront.
|
default void open()
throws Exception
By default, this method does nothing.
Exception - Implementations may forward exceptions, which are caught by the runtime.
When the runtime catches an exception, it aborts the task and lets the fail-over logic
decide whether to retry the task execution.default Set<org.apache.flink.api.common.state.StateDeclaration> usesStates()
default void close()
throws Exception
This method can be used for clean up work.
Exception - Implementations may forward exceptions, which are caught by the runtime.
When the runtime catches an exception, it aborts the task and lets the fail-over logic
decide whether to retry the task execution.Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.