Class ProcessOutboxConfiguration
java.lang.Object
org.chenile.orchestrator.process.configuration.ProcessOutboxConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) OutboxCommandRegistryoutboxCommandRegistry(List<OutboxCommandLifecycle<?>> commands) (package private) OutboxDispatcheroutboxDispatcher(ProcessOutboxRepository repository, OutboxCommandRegistry commands, String workerId, int lockSeconds, int attempts) (package private) ProcessOutboxRepositoryprocessOutboxRepository(JdbcTemplate jdbc, PlatformTransactionManager manager, TenantScope tenantScope) (package private) SchedulingConfigurerprocessOutboxScheduling(TenantAwareOutboxPoller poller, long intervalMillis) (package private) TenantAwareOutboxPollertenantAwareOutboxPoller(OutboxDispatcher dispatcher, TenantSupplier tenantSupplier, TenantScope tenantScope) Polls every tenant's outbox.
-
Constructor Details
-
ProcessOutboxConfiguration
public ProcessOutboxConfiguration()
-
-
Method Details
-
outboxCommandRegistry
@Bean @ConditionalOnMissingBean(OutboxCommandRegistry.class) OutboxCommandRegistry outboxCommandRegistry(List<OutboxCommandLifecycle<?>> commands) -
processOutboxRepository
@Bean ProcessOutboxRepository processOutboxRepository(JdbcTemplate jdbc, PlatformTransactionManager manager, TenantScope tenantScope) -
outboxDispatcher
@Bean OutboxDispatcher outboxDispatcher(ProcessOutboxRepository repository, OutboxCommandRegistry commands, @Value("${chenile.process.outbox.worker-id:${HOSTNAME:local-outbox}}") String workerId, @Value("${chenile.process.outbox.lock-seconds:300}") int lockSeconds, @Value("${chenile.process.outbox.max-attempts:5}") int attempts) -
tenantAwareOutboxPoller
@Bean TenantAwareOutboxPoller tenantAwareOutboxPoller(OutboxDispatcher dispatcher, TenantSupplier tenantSupplier, TenantScope tenantScope) Polls every tenant's outbox. The tenants come from chenile-core'sTenantSupplier: an application bean,chenile.tenants, the multi-datasource-utils tenants, or none (a single tenant, polled once without switching). -
processOutboxScheduling
@Bean @ConditionalOnProperty(name="chenile.process.outbox.run-dispatcher", havingValue="true", matchIfMissing=true) SchedulingConfigurer processOutboxScheduling(TenantAwareOutboxPoller poller, @Value("${chenile.process.outbox.poll-interval-millis:1000}") long intervalMillis)
-
CHENILE