org.apache.ignite.compute

## Annotation Type ComputeJobBeforeFailover

-     @Documented
       @Retention(value=RUNTIME)
       @Target(value=METHOD)
      public @interface ComputeJobBeforeFailover

  This annotation allows to call a method right before job is submitted to `FailoverSpi`. In this method job can re-create necessary state that was cleared, for example, in method with `ComputeJobAfterSend` annotation.

  This annotation can be applied to methods of `ComputeJob` instances only. It is invoked on the caller node after remote execution has failed and before the job gets failed over to another node.

  Example:

       public class MyGridJob implements ComputeJob {
           ...
           @ComputeJobBeforeFailover
           public void onJobBeforeFailover() {
                ...
           }
           ...
       }

2020 Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.9.0
Release Date | : October 15 2020