Interface DistributedTaskFailoverPolicy


  • public interface DistributedTaskFailoverPolicy
    DistributedTaskFailoverPolicy allows pluggable fail over target selection for a failed remotely executed distributed task.
    Since:
    5.2
    Author:
    Vladimir Blagojevic
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Address failover​(FailoverContext context)
      As parts of distributively executed task can fail due to the task itself throwing an exception or it can be an Infinispan system caused failure (e.g node failed or left cluster during task execution etc).
      int maxFailoverAttempts()
      Maximum number of fail over attempts permitted by this DistributedTaskFailoverPolicy
    • Method Detail

      • failover

        Address failover​(FailoverContext context)
        As parts of distributively executed task can fail due to the task itself throwing an exception or it can be an Infinispan system caused failure (e.g node failed or left cluster during task execution etc).
        Parameters:
        context - the FailoverContext of the failed execution
        Returns:
        result the Address of the Infinispan node selected for fail over execution
      • maxFailoverAttempts

        int maxFailoverAttempts()
        Maximum number of fail over attempts permitted by this DistributedTaskFailoverPolicy
        Returns:
        max number of fail over attempts