All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.epam.reportportal.calculation.RetryCalculation Maven / Gradle / Ivy

There is a newer version: 5.13.0
Show newest version
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