public interface BulkheadRegistry
BulkheadRegistry
is a factory to create Bulkhead instances which stores all bulkhead instances in a registry.Modifier and Type | Method and Description |
---|---|
Bulkhead |
bulkhead(java.lang.String name)
Returns a managed
Bulkhead or creates a new one with default configuration. |
Bulkhead |
bulkhead(java.lang.String name,
BulkheadConfig bulkheadConfig)
Returns a managed
Bulkhead or creates a new one with a custom BulkheadConfig configuration. |
Bulkhead |
bulkhead(java.lang.String name,
java.util.function.Supplier<BulkheadConfig> bulkheadConfigSupplier)
Returns a managed
Bulkhead or creates a new one with a custom BulkheadConfig configuration. |
io.vavr.collection.Seq<Bulkhead> |
getAllBulkheads()
Returns all managed
Bulkhead instances. |
BulkheadConfig |
getDefaultBulkheadConfig()
Returns a default BulkheadConfig instance this registry is using.
|
static BulkheadRegistry |
of(BulkheadConfig bulkheadConfig)
Creates a BulkheadRegistry with a custom Bulkhead configuration.
|
static BulkheadRegistry |
ofDefaults()
Creates a BulkheadRegistry with a default Bulkhead configuration
|
io.vavr.collection.Seq<Bulkhead> getAllBulkheads()
Bulkhead
instances.Bulkhead
instances.Bulkhead bulkhead(java.lang.String name)
Bulkhead
or creates a new one with default configuration.name
- the name of the BulkheadBulkhead
Bulkhead bulkhead(java.lang.String name, BulkheadConfig bulkheadConfig)
Bulkhead
or creates a new one with a custom BulkheadConfig configuration.name
- the name of the BulkheadbulkheadConfig
- a custom Bulkhead configurationBulkhead
Bulkhead bulkhead(java.lang.String name, java.util.function.Supplier<BulkheadConfig> bulkheadConfigSupplier)
Bulkhead
or creates a new one with a custom BulkheadConfig configuration.name
- the name of the BulkheadbulkheadConfigSupplier
- a custom Bulkhead configuration supplierBulkhead
BulkheadConfig getDefaultBulkheadConfig()
static BulkheadRegistry of(BulkheadConfig bulkheadConfig)
bulkheadConfig
- a custom Bulkhead configurationstatic BulkheadRegistry ofDefaults()