pl.allegro.tech.hermes.consumers.config.OAuthProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hermes-consumers Show documentation
Show all versions of hermes-consumers Show documentation
Fast and reliable message broker built on top of Kafka.
package pl.allegro.tech.hermes.consumers.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import java.time.Duration;
@ConfigurationProperties(prefix = "consumer.oauth")
public class OAuthProperties {
private Duration missingSubscriptionHandlersCreationDelay = Duration.ofSeconds(10);
private long subscriptionTokensCacheMaxSize = 1000L;
private double providersTokenRequestRateLimiterRateReductionFactor = 2.0;
public Duration getMissingSubscriptionHandlersCreationDelay() {
return missingSubscriptionHandlersCreationDelay;
}
public void setMissingSubscriptionHandlersCreationDelay(Duration missingSubscriptionHandlersCreationDelay) {
this.missingSubscriptionHandlersCreationDelay = missingSubscriptionHandlersCreationDelay;
}
public long getSubscriptionTokensCacheMaxSize() {
return subscriptionTokensCacheMaxSize;
}
public void setSubscriptionTokensCacheMaxSize(long subscriptionTokensCacheMaxSize) {
this.subscriptionTokensCacheMaxSize = subscriptionTokensCacheMaxSize;
}
public double getProvidersTokenRequestRateLimiterRateReductionFactor() {
return providersTokenRequestRateLimiterRateReductionFactor;
}
public void setProvidersTokenRequestRateLimiterRateReductionFactor(double providersTokenRequestRateLimiterRateReductionFactor) {
this.providersTokenRequestRateLimiterRateReductionFactor = providersTokenRequestRateLimiterRateReductionFactor;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy