Interface BulkheadConfig

All Superinterfaces:
Prototype.Api, Prototype.Factory<Bulkhead>
All Known Implementing Classes:
BulkheadConfig.BuilderBase.BulkheadConfigImpl

public interface BulkheadConfig extends Prototype.Api
Bulkhead configuration bean.
See Also:
  • Field Details

  • Method Details

    • builder

      static BulkheadConfig.Builder builder()
      Create a new fluent API builder to customize configuration.
      Returns:
      a new builder
    • builder

      static BulkheadConfig.Builder builder(BulkheadConfig instance)
      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 BulkheadConfig 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 BulkheadConfig create()
      Create a new instance with default values.
      Returns:
      a new instance
    • limit

      int limit()
      Maximal number of parallel requests going through this bulkhead. When the limit is reached, additional requests are enqueued.
      Returns:
      maximal number of parallel calls, defaults is 10
    • queueLength

      int queueLength()
      Maximal number of enqueued requests waiting for processing. When the limit is reached, additional attempts to invoke a request will receive a BulkheadException.
      Returns:
      length of the queue
    • queueListeners

      List<Bulkhead.QueueListener> queueListeners()
      Queue listeners of this bulkhead.
      Returns:
      queue listeners
    • name

      Optional<String> name()
      Name for debugging, error reporting, monitoring.
      Returns:
      name of this bulkhead