Enum Class OutboxProperties.Backend

java.lang.Object
java.lang.Enum<OutboxProperties.Backend>
com.aim2be.platform.outbox.OutboxProperties.Backend
All Implemented Interfaces:
Serializable, Comparable<OutboxProperties.Backend>, Constable
Enclosing class:
OutboxProperties

public static enum OutboxProperties.Backend extends Enum<OutboxProperties.Backend>
Storage-backend selector for the OutboxBackend SPI (Wave A.2 Phase 0a / design doc refinement #11).
  • Enum Constant Details

    • PG

      public static final OutboxProperties.Backend PG
      Postgres-backed outbox (PgOutboxBackend) — the default and the only backend that exists in Phase 0a. Persists rows in a JPA-managed transaction that shares the caller's business transaction (ADR-0014 D-7); OutboxBackend.requiresActiveTransaction() is true.
    • REDIS

      public static final OutboxProperties.Backend REDIS
      Redis-backed outbox — RESERVED for Wave A.2 Phase 0b. Not implemented in Phase 0a; selecting it today has no effect (the Redis backend lives in a future separate Maven module so PG consumers never pull in spring-data-redis). The auto-configuration will branch on this value once the Phase 0b module ships.
  • Method Details

    • values

      public static OutboxProperties.Backend[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static OutboxProperties.Backend valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null