-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Immediate fallback for MultiDatacentenderMessageProducer (#1861)
- Loading branch information
Showing
15 changed files
with
706 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
...nd/src/main/java/pl/allegro/tech/hermes/frontend/producer/kafka/KafkaChaosProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package pl.allegro.tech.hermes.frontend.producer.kafka; | ||
|
||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
|
||
@ConfigurationProperties(prefix = "frontend.kafka.chaos") | ||
public class KafkaChaosProperties { | ||
private ChaosSchedulerProperties chaosScheduler = new ChaosSchedulerProperties(); | ||
|
||
public ChaosSchedulerProperties getChaosScheduler() { | ||
return chaosScheduler; | ||
} | ||
|
||
public void setChaosScheduler(ChaosSchedulerProperties chaosScheduler) { | ||
this.chaosScheduler = chaosScheduler; | ||
} | ||
|
||
public static class ChaosSchedulerProperties { | ||
|
||
private int threadPoolSize = 16; | ||
|
||
private boolean threadPoolMonitoringEnabled = false; | ||
|
||
public int getThreadPoolSize() { | ||
return threadPoolSize; | ||
} | ||
|
||
public void setThreadPoolSize(int threadPoolSize) { | ||
this.threadPoolSize = threadPoolSize; | ||
} | ||
|
||
public boolean isThreadPoolMonitoringEnabled() { | ||
return threadPoolMonitoringEnabled; | ||
} | ||
|
||
public void setThreadPoolMonitoringEnabled(boolean threadPoolMonitoringEnabled) { | ||
this.threadPoolMonitoringEnabled = threadPoolMonitoringEnabled; | ||
} | ||
} | ||
|
||
} |
Oops, something went wrong.