com.epam.reportportal.calculation.RetryCalculation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of service-jobs Show documentation
Show all versions of service-jobs Show documentation
EPAM Report portal. Service jobs
package com.epam.reportportal.calculation;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.scheduling.concurrent.DefaultManagedTaskScheduler;
import org.springframework.stereotype.Component;
@Component
// example of usage
public class RetryCalculation {
private final RetryProcessing retryProcessing;
public RetryCalculation() {
retryProcessing = new RetryProcessing(5, 3000, new DefaultManagedTaskScheduler());
}
/* example of using fill be removed during integration
@RabbitListener(queues = "some_queue")
public void calculate(Object retryItem) {
retryProcessing.add(retryItem);
}
*/
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy