removed unnecessary flag
This commit is contained in:
		
							parent
							
								
									9aff0692ae
								
							
						
					
					
						commit
						ac2a0f5105
					
				@ -56,8 +56,6 @@ public class TbRuleEngineProcessingStrategyFactory {
 | 
			
		||||
        private final boolean retryTimeout;
 | 
			
		||||
        private final int maxRetries;
 | 
			
		||||
        private final double maxAllowedFailurePercentage;
 | 
			
		||||
 | 
			
		||||
        private final boolean multiplyPauseBetweenRetries;
 | 
			
		||||
        private final long maxPauseBetweenRetries;
 | 
			
		||||
 | 
			
		||||
        private long pauseBetweenRetries;
 | 
			
		||||
@ -73,7 +71,6 @@ public class TbRuleEngineProcessingStrategyFactory {
 | 
			
		||||
            this.maxRetries = configuration.getRetries();
 | 
			
		||||
            this.maxAllowedFailurePercentage = configuration.getFailurePercentage();
 | 
			
		||||
            this.pauseBetweenRetries = configuration.getPauseBetweenRetries();
 | 
			
		||||
            this.multiplyPauseBetweenRetries = configuration.isMultiplyPauseBetweenRetries();
 | 
			
		||||
            this.maxPauseBetweenRetries = configuration.getMaxPauseBetweenRetries();
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@ -114,7 +111,7 @@ public class TbRuleEngineProcessingStrategyFactory {
 | 
			
		||||
                        } catch (InterruptedException e) {
 | 
			
		||||
                            throw new RuntimeException(e);
 | 
			
		||||
                        }
 | 
			
		||||
                        if (multiplyPauseBetweenRetries && maxPauseBetweenRetries > pauseBetweenRetries) {
 | 
			
		||||
                        if (maxPauseBetweenRetries > pauseBetweenRetries) {
 | 
			
		||||
                            pauseBetweenRetries = Math.min(maxPauseBetweenRetries, pauseBetweenRetries * 2);
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
@ -725,8 +725,7 @@ queue:
 | 
			
		||||
          retries: "${TB_QUEUE_RE_MAIN_PROCESSING_STRATEGY_RETRIES:3}" # Number of retries, 0 is unlimited
 | 
			
		||||
          failure-percentage: "${TB_QUEUE_RE_MAIN_PROCESSING_STRATEGY_FAILURE_PERCENTAGE:0}" # Skip retry if failures or timeouts are less then X percentage of messages;
 | 
			
		||||
          pause-between-retries: "${TB_QUEUE_RE_MAIN_PROCESSING_STRATEGY_RETRY_PAUSE:3}"# Time in seconds to wait in consumer thread before retries;
 | 
			
		||||
          multiply-pause-between-retries: "${TB_QUEUE_RE_MAIN_PROCESSING_STRATEGY_MUL_RETRY_PAUSE:false}"# Parameter to enable/disable multiplication of pause value between retries on each iteration;
 | 
			
		||||
          max-pause-between-retries: "${TB_QUEUE_RE_MAIN_PROCESSING_STRATEGY_MAX_MUL_RETRY_PAUSE:25}"# Max allowed time in seconds for pause between retries.
 | 
			
		||||
          max-pause-between-retries: "${TB_QUEUE_RE_MAIN_PROCESSING_STRATEGY_MAX_MUL_RETRY_PAUSE:0}"# Max allowed time in seconds for pause between retries.
 | 
			
		||||
      - name: "${TB_QUEUE_RE_HP_QUEUE_NAME:HighPriority}"
 | 
			
		||||
        topic: "${TB_QUEUE_RE_HP_TOPIC:tb_rule_engine.hp}"
 | 
			
		||||
        poll-interval: "${TB_QUEUE_RE_HP_POLL_INTERVAL_MS:25}"
 | 
			
		||||
@ -742,8 +741,7 @@ queue:
 | 
			
		||||
          retries: "${TB_QUEUE_RE_HP_PROCESSING_STRATEGY_RETRIES:0}" # Number of retries, 0 is unlimited
 | 
			
		||||
          failure-percentage: "${TB_QUEUE_RE_HP_PROCESSING_STRATEGY_FAILURE_PERCENTAGE:0}" # Skip retry if failures or timeouts are less then X percentage of messages;
 | 
			
		||||
          pause-between-retries: "${TB_QUEUE_RE_HP_PROCESSING_STRATEGY_RETRY_PAUSE:5}"# Time in seconds to wait in consumer thread before retries;
 | 
			
		||||
          multiply-pause-between-retries: "${TB_QUEUE_RE_HP_PROCESSING_STRATEGY_MUL_RETRY_PAUSE:false}"# Parameter to enable/disable multiplication of pause value between retries on each iteration;
 | 
			
		||||
          max-pause-between-retries: "${TB_QUEUE_RE_HP_PROCESSING_STRATEGY_MAX_MUL_RETRY_PAUSE:120}"# Max allowed time in seconds for pause between retries.
 | 
			
		||||
          max-pause-between-retries: "${TB_QUEUE_RE_HP_PROCESSING_STRATEGY_MAX_MUL_RETRY_PAUSE:0}"# Max allowed time in seconds for pause between retries.
 | 
			
		||||
      - name: "${TB_QUEUE_RE_SQ_QUEUE_NAME:SequentialByOriginator}"
 | 
			
		||||
        topic: "${TB_QUEUE_RE_SQ_TOPIC:tb_rule_engine.sq}"
 | 
			
		||||
        poll-interval: "${TB_QUEUE_RE_SQ_POLL_INTERVAL_MS:25}"
 | 
			
		||||
@ -759,8 +757,7 @@ queue:
 | 
			
		||||
          retries: "${TB_QUEUE_RE_SQ_PROCESSING_STRATEGY_RETRIES:3}" # Number of retries, 0 is unlimited
 | 
			
		||||
          failure-percentage: "${TB_QUEUE_RE_SQ_PROCESSING_STRATEGY_FAILURE_PERCENTAGE:0}" # Skip retry if failures or timeouts are less then X percentage of messages;
 | 
			
		||||
          pause-between-retries: "${TB_QUEUE_RE_SQ_PROCESSING_STRATEGY_RETRY_PAUSE:5}"# Time in seconds to wait in consumer thread before retries;
 | 
			
		||||
          multiply-pause-between-retries: "${TB_QUEUE_RE_SQ_PROCESSING_STRATEGY_MUL_RETRY_PAUSE:false}"# Parameter to enable/disable multiplication of pause value between retries on each iteration;
 | 
			
		||||
          max-pause-between-retries: "${TB_QUEUE_RE_SQ_PROCESSING_STRATEGY_MAX_MUL_RETRY_PAUSE:120}"# Max allowed time in seconds for pause between retries.
 | 
			
		||||
          max-pause-between-retries: "${TB_QUEUE_RE_SQ_PROCESSING_STRATEGY_MAX_MUL_RETRY_PAUSE:0}"# Max allowed time in seconds for pause between retries.
 | 
			
		||||
  transport:
 | 
			
		||||
    # For high priority notifications that require minimum latency and processing time
 | 
			
		||||
    notifications_topic: "${TB_QUEUE_TRANSPORT_NOTIFICATIONS_TOPIC:tb_transport.notifications}"
 | 
			
		||||
 | 
			
		||||
@ -24,7 +24,6 @@ public class TbRuleEngineQueueAckStrategyConfiguration {
 | 
			
		||||
    private int retries;
 | 
			
		||||
    private double failurePercentage;
 | 
			
		||||
    private long pauseBetweenRetries;
 | 
			
		||||
    private boolean multiplyPauseBetweenRetries;
 | 
			
		||||
    private long maxPauseBetweenRetries;
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user