mirror of
https://github.com/valitydev/fraudbusters-mg-connector.git
synced 2024-11-06 01:15:17 +00:00
commit
cb902dfa13
@ -1 +1 @@
|
||||
Subproject commit 56606f5cacec1c30ca11088c575e9c285f1f2f40
|
||||
Subproject commit 24aa772730be966667adb285a09fcb494d4f218e
|
@ -38,6 +38,10 @@ public class KafkaConfig {
|
||||
private boolean kafkaSslEnable;
|
||||
@Value("${kafka.num-stream-threads}")
|
||||
private int numStreamThreads;
|
||||
@Value("${kafka.stream.retries-attempts}")
|
||||
private int retriesAttempts;
|
||||
@Value("${kafka.stream.retries-backoff-ms}")
|
||||
private int retriesBackoffMs;
|
||||
|
||||
@Bean
|
||||
public Properties mgInvoiceEventStreamProperties() {
|
||||
@ -68,8 +72,8 @@ public class KafkaConfig {
|
||||
props.put(StreamsConfig.COMMIT_INTERVAL_MS_CONFIG, 10 * 1000);
|
||||
props.put(StreamsConfig.CACHE_MAX_BYTES_BUFFERING_CONFIG, 0);
|
||||
props.put(StreamsConfig.NUM_STREAM_THREADS_CONFIG, numStreamThreads);
|
||||
props.put(StreamsConfig.RETRIES_CONFIG, 5);
|
||||
props.put(StreamsConfig.RETRY_BACKOFF_MS_CONFIG, 1000);
|
||||
props.put(StreamsConfig.RETRIES_CONFIG, retriesAttempts);
|
||||
props.put(StreamsConfig.RETRY_BACKOFF_MS_CONFIG, retriesBackoffMs);
|
||||
props.put(StreamsConfig.DEFAULT_DESERIALIZATION_EXCEPTION_HANDLER_CLASS_CONFIG,
|
||||
LogAndFailExceptionHandler.class);
|
||||
}
|
||||
|
@ -52,6 +52,9 @@ service:
|
||||
kafka:
|
||||
bootstrap.servers: "localhost:29092"
|
||||
num-stream-threads: 7
|
||||
stream:
|
||||
retries-attempts: 300
|
||||
retries-backoff-ms: 1000
|
||||
ssl:
|
||||
enable: false
|
||||
keystore-location: src/main/resources/cert/kenny-k.struzhkin.p12
|
||||
|
Loading…
Reference in New Issue
Block a user