ru.tinkoff.kora.resilient.timeout.simple.TimeoutModule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of resilient-timeout Show documentation
Show all versions of resilient-timeout Show documentation
Kora resilient-timeout module
package ru.tinkoff.kora.resilient.timeout.simple;
import com.typesafe.config.Config;
import ru.tinkoff.kora.common.DefaultComponent;
import ru.tinkoff.kora.common.Tag;
import ru.tinkoff.kora.config.common.extractor.ConfigValueExtractor;
import ru.tinkoff.kora.config.common.extractor.ObjectConfigValueExtractor;
import ru.tinkoff.kora.resilient.timeout.TimeouterManager;
import ru.tinkoff.kora.resilient.timeout.annotation.Timeout;
import ru.tinkoff.kora.resilient.timeout.telemetry.TimeoutMetrics;
import javax.annotation.Nullable;
import java.util.Map;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public interface TimeoutModule {
default ConfigValueExtractor simpleTimeoutConfigValueExtractor(ConfigValueExtractor