public interface Function extends Serializable
| 限定符和类型 | 方法和说明 |
|---|---|
default void |
loadCheckpoint(Serializable checkpointObject)
This method will be called by framework when a worker died and been restarted.
|
default Serializable |
saveCheckpoint()
This method will be called periodically by framework, you should return a a serializable object
which represents function state, framework will help you to serialize this object, save it to
storage, and load it back when in fail-over through.
|
default Serializable saveCheckpoint()
loadCheckpoint(Serializable).default void loadCheckpoint(Serializable checkpointObject)
saveCheckpoint() when doing checkpoint, you are
responsible to load this object back to you function.checkpointObject - the last object you returned in saveCheckpoint()Copyright © 2022. All rights reserved.