Merge branch 'RED-9331' into 'main'
RED-9331: Explore possibilities for fair upload / analysis processing per tenant See merge request fforesight/database-tenant-commons!29
This commit is contained in:
commit
2282b398f0
@ -29,7 +29,7 @@ val springCloudVersion = "4.0.4"
|
||||
|
||||
dependencies {
|
||||
api("com.fasterxml.jackson.core:jackson-databind:2.15.2:")
|
||||
api("com.knecon.fforesight:tenant-commons:0.24.0")
|
||||
api("com.knecon.fforesight:tenant-commons:0.26.0")
|
||||
api("com.zaxxer:HikariCP:5.0.1")
|
||||
api("com.google.guava:guava:32.1.2-jre")
|
||||
api("org.liquibase:liquibase-core:4.20.0")
|
||||
|
||||
@ -16,13 +16,13 @@ import lombok.RequiredArgsConstructor;
|
||||
@RequiredArgsConstructor
|
||||
public class TenantMessagingConfiguration {
|
||||
|
||||
@Value("${fforesight.multitenancy.tenant-created-queue:tenant-created}")
|
||||
@Value("${fforesight.multitenancy.tenant-created-queue:tenant-created-queue}")
|
||||
private String tenantCreatedEventQueue;
|
||||
|
||||
@Value("${fforesight.multitenancy.tenant-created-dlq:tenant-created-dlq}")
|
||||
private String tenantCreatedDLQ;
|
||||
|
||||
@Value("${fforesight.multitenancy.tenant-sync-queue:tenant-sync}")
|
||||
@Value("${fforesight.multitenancy.tenant-sync-queue:tenant-sync-queue}")
|
||||
private String tenantSyncEventQueue;
|
||||
|
||||
@Value("${fforesight.multitenancy.tenant-sync-dlq:tenant-sync-dlq}")
|
||||
|
||||
@ -18,7 +18,7 @@ public class TenantCreatedListener {
|
||||
|
||||
private final TenantLiquibaseInitializer tenantLiquibaseInitializer;
|
||||
|
||||
@Value("${fforesight.multitenancy.tenant-created-queue:tenant-created}")
|
||||
@Value("${fforesight.multitenancy.tenant-created-queue:tenant-created-queue}")
|
||||
private String tenantCreatedQueue;
|
||||
|
||||
|
||||
@ -30,7 +30,7 @@ public class TenantCreatedListener {
|
||||
|
||||
|
||||
@SneakyThrows
|
||||
@RabbitListener(queues = "${fforesight.multitenancy.tenant-created-queue:tenant-created}")
|
||||
@RabbitListener(queues = "${fforesight.multitenancy.tenant-created-queue:tenant-created-queue}")
|
||||
public void createTenant(TenantCreatedEvent tenantRequest) {
|
||||
|
||||
tenantLiquibaseInitializer.initializeTenant(tenantRequest.getTenantId());
|
||||
|
||||
@ -20,7 +20,7 @@ public class TenantSyncListener {
|
||||
|
||||
private final Optional<TenantSyncService> tenantSyncServices;
|
||||
|
||||
@Value("${fforesight.multitenancy.tenant-sync-queue:tenant-sync}")
|
||||
@Value("${fforesight.multitenancy.tenant-sync-queue:tenant-sync-queue}")
|
||||
private String tenantSyncQueue;
|
||||
|
||||
|
||||
@ -32,7 +32,7 @@ public class TenantSyncListener {
|
||||
|
||||
|
||||
@SneakyThrows
|
||||
@RabbitListener(queues = "${fforesight.multitenancy.tenant-sync-queue:tenant-sync}")
|
||||
@RabbitListener(queues = "${fforesight.multitenancy.tenant-sync-queue:tenant-sync-queue}")
|
||||
public void createTenant(TenantSyncEvent tenantSyncEvent) {
|
||||
|
||||
tenantSyncServices.ifPresent(t -> t.syncTenant(tenantSyncEvent));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user