Javadoc
Task callback to capture its state on the provided map. This is invoked after each invocation of
Runnable#run() or
Callable#call() to capture a snapshot of the state and publish to replicas. If two or more replicas of the same
task run at the same time and publish their states, then only the one running on the owner member will be allowed to update
the replicas.
Note: The state of the cluster is not known or guaranteed during task's execution, thus, publication of the task's
state to replicas is done on best-effort basis.
Called immediately after run() or call() of the
Runnable or
java.util.concurrent.Callable respectively.