-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
30b1315
commit ae27c71
Showing
11 changed files
with
117 additions
and
59 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
37 changes: 37 additions & 0 deletions
37
...on/opptjening/omsorgsopptjening/bestem/pensjonsopptjening/brev/model/spring/BrevConfig.kt
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,37 @@ | ||
package no.nav.pensjon.opptjening.omsorgsopptjening.bestem.pensjonsopptjening.brev.model.spring | ||
|
||
import io.getunleash.Unleash | ||
import no.nav.pensjon.opptjening.omsorgsopptjening.bestem.pensjonsopptjening.brev.metrics.BrevProcessingMetricsFeilmåling | ||
import no.nav.pensjon.opptjening.omsorgsopptjening.bestem.pensjonsopptjening.brev.metrics.BrevProcessingMetrikker | ||
import no.nav.pensjon.opptjening.omsorgsopptjening.bestem.pensjonsopptjening.brev.model.BrevProcessingThread | ||
import no.nav.pensjon.opptjening.omsorgsopptjening.bestem.pensjonsopptjening.brev.model.BrevService | ||
import no.nav.pensjon.opptjening.omsorgsopptjening.bestem.pensjonsopptjening.config.DatasourceReadinessCheck | ||
import org.springframework.context.annotation.Bean | ||
import org.springframework.context.annotation.Configuration | ||
import org.springframework.context.annotation.Profile | ||
|
||
@Configuration | ||
class BrevConfig { | ||
|
||
@Bean | ||
@Profile("dev-gcp", "prod-gcp", "kafkaIntegrationTest") | ||
fun brevProcessingThread( | ||
service: BrevService, | ||
unleash: Unleash, | ||
brevProcessingMetricsMåling: BrevProcessingMetrikker, | ||
brevProcessingMetricsFeilmåling: BrevProcessingMetricsFeilmåling, | ||
datasourceReadinessCheck: DatasourceReadinessCheck, | ||
): Runnable { | ||
return Thread.ofVirtual() | ||
.name("prosesser-brev-thread") | ||
.start( | ||
BrevProcessingThread( | ||
service = service, | ||
unleash = unleash, | ||
brevProcessingMetricsMåling = brevProcessingMetricsMåling, | ||
brevProcessingMetricsFeilmåling = brevProcessingMetricsFeilmåling, | ||
datasourceReadinessCheck = datasourceReadinessCheck | ||
) | ||
) | ||
} | ||
} |
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
37 changes: 37 additions & 0 deletions
37
...tjening/omsorgsopptjening/bestem/pensjonsopptjening/oppgave/model/spring/OppgaveConfig.kt
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,37 @@ | ||
package no.nav.pensjon.opptjening.omsorgsopptjening.bestem.pensjonsopptjening.oppgave.model.spring | ||
|
||
import io.getunleash.Unleash | ||
import no.nav.pensjon.opptjening.omsorgsopptjening.bestem.pensjonsopptjening.config.DatasourceReadinessCheck | ||
import no.nav.pensjon.opptjening.omsorgsopptjening.bestem.pensjonsopptjening.oppgave.metrics.OppgaveProcessingMetricsFeilmåling | ||
import no.nav.pensjon.opptjening.omsorgsopptjening.bestem.pensjonsopptjening.oppgave.metrics.OppgaveProcessingMetrikker | ||
import no.nav.pensjon.opptjening.omsorgsopptjening.bestem.pensjonsopptjening.oppgave.model.OppgaveProcessingThread | ||
import no.nav.pensjon.opptjening.omsorgsopptjening.bestem.pensjonsopptjening.oppgave.model.OppgaveService | ||
import org.springframework.context.annotation.Bean | ||
import org.springframework.context.annotation.Configuration | ||
import org.springframework.context.annotation.Profile | ||
|
||
@Configuration | ||
class OppgaveConfig { | ||
|
||
@Bean | ||
@Profile("dev-gcp", "prod-gcp", "kafkaIntegrationTest") | ||
fun oppgaveProcessingThread( | ||
service: OppgaveService, | ||
unleash: Unleash, | ||
oppgaveProcessingMetricsMåling: OppgaveProcessingMetrikker, | ||
oppgaveProcessingMetricsFeilmåling: OppgaveProcessingMetricsFeilmåling, | ||
datasourceReadinessCheck: DatasourceReadinessCheck, | ||
): Runnable { | ||
return Thread.ofVirtual() | ||
.name("prosesser-oppgave-thread") | ||
.start( | ||
OppgaveProcessingThread( | ||
service = service, | ||
unleash = unleash, | ||
oppgaveProcessingMetricsMåling = oppgaveProcessingMetricsMåling, | ||
oppgaveProcessingMetricsFeilmåling = oppgaveProcessingMetricsFeilmåling, | ||
datasourceReadinessCheck = datasourceReadinessCheck | ||
) | ||
) | ||
} | ||
} |
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