public interface StateStoreManager
Streaming State should implement transaction in case of failure, which in our case is four default method, finish, commit, ackCommit, rollback.
| Modifier and Type | Method and Description |
|---|---|
void |
ackCommit(long checkpointId,
long timeStamp)
The ackCommit method is used for cleaning the last checkpoint, and must be called after commit
in the same thread.
|
void |
commit(long checkpointId)
The commit method is used for persistent, and can be used in another thread to reach async
state commit.
|
void |
finish(long checkpointId)
The finish method is used when the batched data is all saved in state.
|
void |
rollBack(long checkpointId)
The rollback method is used for recovering the checkpoint.
|
void finish(long checkpointId)
void commit(long checkpointId)
void ackCommit(long checkpointId,
long timeStamp)
void rollBack(long checkpointId)
Copyright © 2020. All rights reserved.