Class InMemoryBulkheadRegistry
- All Implemented Interfaces:
BulkheadRegistry,io.github.resilience4j.core.Registry<Bulkhead,BulkheadConfig>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.resilience4j.bulkhead.BulkheadRegistry
BulkheadRegistry.BuilderNested classes/interfaces inherited from interface io.github.resilience4j.core.Registry
io.github.resilience4j.core.Registry.EventPublisher<E extends Object> -
Field Summary
Fields inherited from class io.github.resilience4j.core.registry.AbstractRegistry
CONFIG_MUST_NOT_BE_NULL, configurations, CONSUMER_MUST_NOT_BE_NULL, DEFAULT_CONFIG, entryMap, registryTags, SUPPLIER_MUST_NOT_BE_NULL, TAGS_MUST_NOT_BE_NULL -
Constructor Summary
ConstructorsConstructorDescriptionThe constructor with default default.InMemoryBulkheadRegistry(BulkheadConfig defaultConfig) The constructor with custom default config.InMemoryBulkheadRegistry(BulkheadConfig defaultConfig, io.github.resilience4j.core.registry.RegistryEventConsumer<Bulkhead> registryEventConsumer) InMemoryBulkheadRegistry(BulkheadConfig defaultConfig, io.github.resilience4j.core.registry.RegistryEventConsumer<Bulkhead> registryEventConsumer, Map<String, String> tags) InMemoryBulkheadRegistry(BulkheadConfig defaultConfig, List<io.github.resilience4j.core.registry.RegistryEventConsumer<Bulkhead>> registryEventConsumers) InMemoryBulkheadRegistry(BulkheadConfig defaultConfig, List<io.github.resilience4j.core.registry.RegistryEventConsumer<Bulkhead>> registryEventConsumers, Map<String, String> tags) InMemoryBulkheadRegistry(BulkheadConfig defaultConfig, Map<String, String> tags) InMemoryBulkheadRegistry(Map<String, BulkheadConfig> configs) InMemoryBulkheadRegistry(Map<String, BulkheadConfig> configs, io.github.resilience4j.core.registry.RegistryEventConsumer<Bulkhead> registryEventConsumer) InMemoryBulkheadRegistry(Map<String, BulkheadConfig> configs, io.github.resilience4j.core.registry.RegistryEventConsumer<Bulkhead> registryEventConsumer, Map<String, String> tags) InMemoryBulkheadRegistry(Map<String, BulkheadConfig> configs, List<io.github.resilience4j.core.registry.RegistryEventConsumer<Bulkhead>> registryEventConsumers) InMemoryBulkheadRegistry(Map<String, BulkheadConfig> configs, List<io.github.resilience4j.core.registry.RegistryEventConsumer<Bulkhead>> registryEventConsumers, Map<String, String> tags) InMemoryBulkheadRegistry(Map<String, BulkheadConfig> configs, List<io.github.resilience4j.core.registry.RegistryEventConsumer<Bulkhead>> registryEventConsumers, Map<String, String> tags, io.github.resilience4j.core.RegistryStore<Bulkhead> registryStore) InMemoryBulkheadRegistry(Map<String, BulkheadConfig> configs, Map<String, String> tags) -
Method Summary
Modifier and TypeMethodDescriptionReturns a managedBulkheador creates a new one with default configuration.bulkhead(String name, BulkheadConfig config) Returns a managedBulkheador creates a new one with a custom BulkheadConfig configuration.Returns a managedBulkheador creates a new one with a custom BulkheadConfig configuration.Returns a managedBulkheador creates a new one.Returns a managedBulkheador creates a new one.bulkhead(String name, Supplier<BulkheadConfig> bulkheadConfigSupplier) Returns a managedBulkheador creates a new one with a custom Bulkhead configuration.Returns a managedBulkheador creates a new one with a custom Bulkhead configuration.Returns a managedBulkheador creates a new one with default configuration.Returns all managedBulkheadinstances.Methods inherited from class io.github.resilience4j.core.registry.AbstractRegistry
addConfiguration, computeIfAbsent, find, getAllTags, getConfiguration, getDefaultConfig, getEventPublisher, getTags, remove, replaceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.resilience4j.core.Registry
addConfiguration, find, getConfiguration, getDefaultConfig, getEventPublisher, getTags, remove, replace
-
Constructor Details
-
InMemoryBulkheadRegistry
public InMemoryBulkheadRegistry()The constructor with default default. -
InMemoryBulkheadRegistry
-
InMemoryBulkheadRegistry
-
InMemoryBulkheadRegistry
public InMemoryBulkheadRegistry(Map<String, BulkheadConfig> configs, io.github.resilience4j.core.registry.RegistryEventConsumer<Bulkhead> registryEventConsumer) -
InMemoryBulkheadRegistry
-
InMemoryBulkheadRegistry
public InMemoryBulkheadRegistry(Map<String, BulkheadConfig> configs, List<io.github.resilience4j.core.registry.RegistryEventConsumer<Bulkhead>> registryEventConsumers) -
InMemoryBulkheadRegistry
-
InMemoryBulkheadRegistry
The constructor with custom default config.- Parameters:
defaultConfig- The default config.
-
InMemoryBulkheadRegistry
-
InMemoryBulkheadRegistry
public InMemoryBulkheadRegistry(BulkheadConfig defaultConfig, List<io.github.resilience4j.core.registry.RegistryEventConsumer<Bulkhead>> registryEventConsumers) -
InMemoryBulkheadRegistry
-
InMemoryBulkheadRegistry
public InMemoryBulkheadRegistry(BulkheadConfig defaultConfig, io.github.resilience4j.core.registry.RegistryEventConsumer<Bulkhead> registryEventConsumer) -
InMemoryBulkheadRegistry
public InMemoryBulkheadRegistry(BulkheadConfig defaultConfig, io.github.resilience4j.core.registry.RegistryEventConsumer<Bulkhead> registryEventConsumer, Map<String, String> tags) -
InMemoryBulkheadRegistry
-
-
Method Details
-
getAllBulkheads
Returns all managedBulkheadinstances.- Specified by:
getAllBulkheadsin interfaceBulkheadRegistry- Returns:
- all managed
Bulkheadinstances.
-
bulkhead
Returns a managedBulkheador creates a new one with default configuration.- Specified by:
bulkheadin interfaceBulkheadRegistry- Parameters:
name- the name of the Bulkhead- Returns:
- The
Bulkhead
-
bulkhead
Returns a managedBulkheador creates a new one with default configuration.The
tagspassed will be appended to the tags already configured for the registry. When tags (keys) of the two collide the tags passed with this method will override the tags of the registry.- Specified by:
bulkheadin interfaceBulkheadRegistry- Parameters:
name- the name of the Bulkheadtags- tags to add to the bulkhead- Returns:
- The
Bulkhead
-
bulkhead
Returns a managedBulkheador creates a new one with a custom BulkheadConfig configuration.- Specified by:
bulkheadin interfaceBulkheadRegistry- Parameters:
name- the name of the Bulkheadconfig- a custom Bulkhead configuration- Returns:
- The
Bulkhead
-
bulkhead
Returns a managedBulkheador creates a new one with a custom BulkheadConfig configuration.The
tagspassed will be appended to the tags already configured for the registry. When tags (keys) of the two collide the tags passed with this method will override the tags of the registry.- Specified by:
bulkheadin interfaceBulkheadRegistry- Parameters:
name- the name of the Bulkheadconfig- a custom Bulkhead configurationtags- tags added to the bulkhead- Returns:
- The
Bulkhead
-
bulkhead
Returns a managedBulkheador creates a new one with a custom Bulkhead configuration.- Specified by:
bulkheadin interfaceBulkheadRegistry- Parameters:
name- the name of the BulkheadbulkheadConfigSupplier- a custom Bulkhead configuration supplier- Returns:
- The
Bulkhead
-
bulkhead
public Bulkhead bulkhead(String name, Supplier<BulkheadConfig> bulkheadConfigSupplier, Map<String, String> tags) Returns a managedBulkheador creates a new one with a custom Bulkhead configuration.The
tagspassed will be appended to the tags already configured for the registry. When tags (keys) of the two collide the tags passed with this method will override the tags of the registry.- Specified by:
bulkheadin interfaceBulkheadRegistry- Parameters:
name- the name of the BulkheadbulkheadConfigSupplier- a custom Bulkhead configuration suppliertags- tags to add to the Bulkhead- Returns:
- The
Bulkhead
-
bulkhead
Returns a managedBulkheador creates a new one. The configuration must have been added upfront viaRegistry.addConfiguration(String, Object).- Specified by:
bulkheadin interfaceBulkheadRegistry- Parameters:
name- the name of the BulkheadconfigName- the name of the shared configuration- Returns:
- The
Bulkhead
-
bulkhead
Returns a managedBulkheador creates a new one. The configuration must have been added upfront viaRegistry.addConfiguration(String, Object).The
tagspassed will be appended to the tags already configured for the registry. When tags (keys) of the two collide the tags passed with this method will override the tags of the registry.- Specified by:
bulkheadin interfaceBulkheadRegistry- Parameters:
name- the name of the BulkheadconfigName- the name of the shared configurationtags- tags to add to the Bulkhead- Returns:
- The
Bulkhead
-