代码优化

This commit is contained in:
rain
2024-01-30 15:51:35 +08:00
parent 82348cb926
commit bed132b25a
3 changed files with 12 additions and 1 deletions

View File

@@ -12,6 +12,11 @@ import java.lang.annotation.*;
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Documented @Documented
@Inherited @Inherited
/**
* This class has been deprecated due to its only component retry function. Please use the retry method in the EL expression.
* @Deprecated
* @see # retry(int retryTimes) e.g. THEN( a, b.retry(3) ); WHEN( a, b ).retry(3);
*/
@Deprecated @Deprecated
public @interface LiteflowRetry { public @interface LiteflowRetry {

View File

@@ -9,7 +9,7 @@ import com.yomahub.liteflow.flow.element.condition.RetryCondition;
/** /**
* *
* @author Rain * @author Rain
* @since 2.11.5 * @since 2.12.0
* *
*/ */
public class RetryOperator extends BaseOperator<Condition> { public class RetryOperator extends BaseOperator<Condition> {

View File

@@ -14,6 +14,12 @@ import com.yomahub.liteflow.slot.DataBus;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
/**
*
* @author Rain
* @since 2.12.0
*
*/
public class RetryCondition extends ThenCondition{ public class RetryCondition extends ThenCondition{
private final LFLog LOG = LFLoggerManager.getLogger(this.getClass()); private final LFLog LOG = LFLoggerManager.getLogger(this.getClass());