1 package com.github.dexecutor.core; 2 3 /** 4 * Defines the execution behavior of the tasks 5 * <ul> 6 * <li> 7 * <code>TERMINATING </code> : Whole tasks execution would come to an end after the execution is thrown 8 * </li> 9 * <li> 10 * <code>NON_TERMINATING</code> : Tasks execution wont come to halt after an exception is thrown out of task 11 * </li> 12 * <li> 13 * <code>RETRY_ONCE_TERMINATING</code> : A retry would be attempted after an exception is thrown, and then if the execption is thrown again, the tasks execution would stop 14 * </li> 15 * 16 * </ul> 17 * 18 * @author Nadeem Mohammad 19 * 20 */ 21 public enum ExecutionBehavior { 22 TERMINATING, NON_TERMINATING, IMMEDIATE_RETRY_TERMINATING, SCHEDULED_RETRY_TERMINATING; 23 }