pl.allegro.tech.hermes.consumers.config.Http2ClientProperties 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 pl.allegro.tech.hermes.consumers.consumer.sender.http.Http2ClientParameters;
import java.time.Duration;
public class Http2ClientProperties implements Http2ClientParameters {
private boolean enabled = true;
private int threadPoolSize = 10;
private boolean threadPoolMonitoringEnabled = false;
private Duration idleTimeout = Duration.ofMillis(0);
private int maxRequestsQueuedPerDestination = 100;
private boolean followRedirectsEnabled = false;
private Duration connectionTimeout = Duration.ofSeconds(15);
public boolean isEnabled() {
return enabled;
}
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
@Override
public int getThreadPoolSize() {
return threadPoolSize;
}
public void setThreadPoolSize(int threadPoolSize) {
this.threadPoolSize = threadPoolSize;
}
@Override
public boolean isThreadPoolMonitoringEnabled() {
return threadPoolMonitoringEnabled;
}
public void setThreadPoolMonitoringEnabled(boolean threadPoolMonitoringEnabled) {
this.threadPoolMonitoringEnabled = threadPoolMonitoringEnabled;
}
@Override
public Duration getIdleTimeout() {
return idleTimeout;
}
public void setIdleTimeout(Duration idleTimeout) {
this.idleTimeout = idleTimeout;
}
@Override
public int getMaxRequestsQueuedPerDestination() {
return maxRequestsQueuedPerDestination;
}
public void setMaxRequestsQueuedPerDestination(int maxRequestsQueuedPerDestination) {
this.maxRequestsQueuedPerDestination = maxRequestsQueuedPerDestination;
}
@Override
public boolean isFollowRedirectsEnabled() {
return followRedirectsEnabled;
}
public void setFollowRedirectsEnabled(boolean followRedirectsEnabled) {
this.followRedirectsEnabled = followRedirectsEnabled;
}
@Override
public Duration getConnectionTimeout() {
return connectionTimeout;
}
public void setConnectionTimeout(Duration connectionTimeout) {
this.connectionTimeout = connectionTimeout;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy