Interface MessagingFailureConfig

All Superinterfaces:
Prototype.Api

public sealed interface MessagingFailureConfig extends Prototype.Api
Incoming failure-policy overrides applied to the declared policy or messaging defaults.
See Also:
  • Method Details

    • builder

      Create a new fluent API builder to customize configuration.
      Returns:
      a new builder
    • builder

      Create a new fluent API builder from an existing instance.
      Parameters:
      instance - an existing instance used as a base for the builder
      Returns:
      a builder based on an instance
    • create

      static MessagingFailureConfig create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • create

      static MessagingFailureConfig create()
      Create a new instance with default values.
      Returns:
      a new instance
    • retry

      Optional<Retry> retry()
      Complete retry instance for this incoming channel. When present, it replaces the declared retry as a whole. Unspecified options within a configured retry use fault-tolerance defaults, not messaging or handler defaults. When absent, the declared retry is used, or the shared messaging default if no retry was declared.
      Returns:
      retry instance, if configured
    • onExhausted

      Disposition used when retry attempts are exhausted.
      Returns:
      exhaustion disposition override, if configured
    • deadLetter

      Optional<DeadLetterConfig> deadLetter()
      Dead-letter target override. Required by the effective policy when its disposition is DEAD_LETTER.
      Returns:
      dead-letter target override, if configured