Package com.aim2be.platform.outbox.redis
Class RedisOutboxProperties
java.lang.Object
com.aim2be.platform.outbox.redis.RedisOutboxProperties
@ConfigurationProperties(prefix="im2be.outbox.redis")
@Validated
public class RedisOutboxProperties
extends Object
Type-safe configuration for the
redis-outbox-backend module
(Wave A.2 Phase 0b, design doc .planning/32-wave-a2-redis-outbox-design.md).
Consumers tune behaviour under the im2be.outbox.redis.* prefix.
The module is only wired when im2be.outbox.enabled=true AND
im2be.outbox.backend=REDIS (the EXPLICIT backend selection of
refinement #11 — Redis-on-classpath must NOT auto-select; PG stays default).
Property reference:
im2be.outbox.redis.key-prefix = {identity:outbox}
im2be.outbox.redis.poller.enabled = true
im2be.outbox.redis.poller.interval-ms = 5000
im2be.outbox.redis.poller.batch-size = 500
im2be.outbox.redis.poller.max-retries = 10
im2be.outbox.redis.poller.send-timeout-ms = 10000
im2be.outbox.redis.poller.lock-ttl-ms = 30000
im2be.outbox.redis.poller.lock-renew-margin-ms = 10000
im2be.outbox.redis.poller.backoff-base-ms = 1000
im2be.outbox.redis.poller.backoff-max-ms = 300000
im2be.outbox.redis.retention.enabled = true
im2be.outbox.redis.retention.interval-ms = 3600000
im2be.outbox.redis.retention.sent-ttl-ms = 86400000
im2be.outbox.redis.retention.batch-size = 1000
im2be.outbox.redis.repair.enabled = true
im2be.outbox.redis.repair.interval-ms = 900000
im2be.outbox.redis.durability.enforcement = FAIL_FAST
im2be.outbox.redis.durability.check-interval-ms = 60000
im2be.outbox.redis.durability.require-always-fsync = false
im2be.outbox.redis.durability.fsync-barrier-enabled = false
im2be.outbox.redis.circuit-breaker.failure-rate-threshold = 50
im2be.outbox.redis.circuit-breaker.wait-duration-in-open-state-ms = 5000
Relaxed binding applies — env vars use
IM2BE_OUTBOX_REDIS_POLLER_BATCH_SIZE et al.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classResilience4j circuit-breaker tuning for the inline hot relay — mirrors the PG publisher'sim2be.outbox.circuit-breaker.*so a degraded broker short-circuits the hot path (the cold poller still drains PENDING).static classDurability-SLA enforcement configuration (refinement #7).static enumHow a durability-config violation is handled (refinement #7).static classCold-path poller + single-writer lock configuration (refinements #4 + #5).static classzset/hash reconciliation configuration (refinement #10).static classSENT-entry retention cleanup configuration (refinement #9). -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RedisOutboxProperties
public RedisOutboxProperties()
-
-
Method Details
-
getKeyPrefix
-
setKeyPrefix
-
getPoller
-
getRetention
-
getRepair
-
getDurability
-
getCircuitBreaker
-