Package com.aim2be.platform.outbox
Class OutboxProperties
java.lang.Object
com.aim2be.platform.outbox.OutboxProperties
@ConfigurationProperties(prefix="im2be.outbox")
@Validated
public class OutboxProperties
extends Object
Type-safe configuration for the outbox-publisher module.
Consumers tune behaviour via application.properties (or yml)
under the im2be.outbox.* prefix. The enabled top-level
flag is the master gate — when false (the default) NONE of the
outbox beans are wired into the application context.
Property reference:
im2be.outbox.enabled = false im2be.outbox.backend = PG im2be.outbox.poller.enabled = true im2be.outbox.poller.interval-ms = 5000 im2be.outbox.poller.batch-size = 500 im2be.outbox.poller.max-retries = 10 im2be.outbox.poller.send-timeout-ms = 10000 im2be.outbox.circuit-breaker.failure-rate-threshold = 50 im2be.outbox.circuit-breaker.wait-duration-in-open-state-ms = 5000 im2be.outbox.scheduler-lock.default-at-most = PT1M
Property bindings are validated via Spring's relaxed binding — env vars
use IM2BE_OUTBOX_POLLER_INTERVAL_MS et al. See ADR-0014 D-1 + D-9
for the relay/poller semantics these knobs control.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumStorage-backend selector for theOutboxBackendSPI (Wave A.2 Phase 0a / design doc refinement #11).static classResilience4j circuit-breaker tuning for the hot AFTER_COMMIT path.static classCold-path poller configuration.static classShedLock context-wide configuration. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetBackend(OutboxProperties.Backend backend) voidsetEnabled(boolean enabled)
-
Constructor Details
-
OutboxProperties
public OutboxProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getBackend
-
setBackend
-
getPoller
-
getCircuitBreaker
-
getSchedulerLock
-