public final class InMemoryBulkheadRegistry extends java.lang.Object implements BulkheadRegistry
| Constructor and Description |
|---|
InMemoryBulkheadRegistry(BulkheadConfig bulkheadConfig)
The constructor with custom default bulkhead config
|
| 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitof, ofDefaultspublic InMemoryBulkheadRegistry(BulkheadConfig bulkheadConfig)
bulkheadConfig - custom bulkhead config to usepublic io.vavr.collection.Seq<Bulkhead> getAllBulkheads()
BulkheadRegistryBulkhead instances.getAllBulkheads in interface BulkheadRegistryBulkhead instances.public Bulkhead bulkhead(java.lang.String name)
BulkheadRegistryBulkhead or creates a new one with default configuration.bulkhead in interface BulkheadRegistryname - the name of the BulkheadBulkheadpublic Bulkhead bulkhead(java.lang.String name, BulkheadConfig bulkheadConfig)
BulkheadRegistryBulkhead or creates a new one with a custom BulkheadConfig configuration.bulkhead in interface BulkheadRegistryname - the name of the BulkheadbulkheadConfig - a custom Bulkhead configurationBulkheadpublic Bulkhead bulkhead(java.lang.String name, java.util.function.Supplier<BulkheadConfig> bulkheadConfigSupplier)
BulkheadRegistryBulkhead or creates a new one with a custom BulkheadConfig configuration.bulkhead in interface BulkheadRegistryname - the name of the BulkheadbulkheadConfigSupplier - a custom Bulkhead configuration supplierBulkheadpublic BulkheadConfig getDefaultBulkheadConfig()
BulkheadRegistrygetDefaultBulkheadConfig in interface BulkheadRegistry