@Experimental public interface ProcessFunction extends 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<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<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–2024 The Apache Software Foundation. All rights reserved.