subclass should override this method to pass in a PersistentState
subclass should override this method to pass in a PersistentState
the framework has already offered two states
subclass should override this method to specify how a new message should update state
Method called for each message received.
Method called for each message received.
Method called with the task is initialized.
Method called with the task is initialized.
startTime that can be used to decide from when a source producer task should replay the data source, or from when a processor task should recover its checkpoint data in to in-memory state.
Method called when task is under clean up.
Method called when task is under clean up. This can be used to cleanup resource when the application finished.
handler for unmanaged message
For managed message(type of Message), the sender mean nothing, you should not use this directory
For managed message(type of Message), the sender mean nothing, you should not use this directory
For unmanaged message, the sender represent the sender actor
the sender
PersistentTask is part of the transaction API
Users should extend this task if they want to get transaction support from the framework