public interface ThreadPoolBulkheadRegistry extends io.github.resilience4j.core.Registry<ThreadPoolBulkhead,ThreadPoolBulkheadConfig>, java.lang.AutoCloseable
ThreadPoolBulkheadRegistry is a factory to create ThreadPoolBulkhead instances which
stores all bulkhead instances in a registry.| Modifier and Type | Interface and Description |
|---|---|
static class |
ThreadPoolBulkheadRegistry.Builder |
| Modifier and Type | Method and Description |
|---|---|
ThreadPoolBulkhead |
bulkhead(java.lang.String name)
Returns a managed
ThreadPoolBulkhead or creates a new one with default
configuration. |
ThreadPoolBulkhead |
bulkhead(java.lang.String name,
io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
Returns a managed
ThreadPoolBulkhead or creates a new one with default
configuration. |
ThreadPoolBulkhead |
bulkhead(java.lang.String name,
java.lang.String configName)
Returns a managed
ThreadPoolBulkhead or creates a new one. |
ThreadPoolBulkhead |
bulkhead(java.lang.String name,
java.lang.String configName,
io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
Returns a managed
ThreadPoolBulkhead or creates a new one. |
ThreadPoolBulkhead |
bulkhead(java.lang.String name,
java.util.function.Supplier<ThreadPoolBulkheadConfig> bulkheadConfigSupplier)
Returns a managed
ThreadPoolBulkhead or creates a new one with a custom
ThreadPoolBulkhead configuration. |
ThreadPoolBulkhead |
bulkhead(java.lang.String name,
java.util.function.Supplier<ThreadPoolBulkheadConfig> bulkheadConfigSupplier,
io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
Returns a managed
ThreadPoolBulkhead or creates a new one with a custom
ThreadPoolBulkhead configuration. |
ThreadPoolBulkhead |
bulkhead(java.lang.String name,
ThreadPoolBulkheadConfig config)
Returns a managed
ThreadPoolBulkhead or creates a new one with a custom
ThreadPoolBulkhead configuration. |
ThreadPoolBulkhead |
bulkhead(java.lang.String name,
ThreadPoolBulkheadConfig config,
io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
Returns a managed
ThreadPoolBulkhead or creates a new one with a custom
ThreadPoolBulkhead configuration. |
static ThreadPoolBulkheadRegistry.Builder |
custom()
Returns a builder to create a custom ThreadPoolBulkheadRegistry.
|
io.vavr.collection.Seq<ThreadPoolBulkhead> |
getAllBulkheads()
Returns all managed
ThreadPoolBulkhead instances. |
static ThreadPoolBulkheadRegistry |
of(java.util.Map<java.lang.String,ThreadPoolBulkheadConfig> configs)
Creates a ThreadPoolBulkheadRegistry with a Map of shared ThreadPoolBulkhead configurations.
|
static ThreadPoolBulkheadRegistry |
of(java.util.Map<java.lang.String,ThreadPoolBulkheadConfig> configs,
java.util.List<io.github.resilience4j.core.registry.RegistryEventConsumer<ThreadPoolBulkhead>> registryEventConsumers)
Creates a ThreadPoolBulkheadRegistry with a Map of shared ThreadPoolBulkhead configurations
and a list of ThreadPoolBulkhead registry event consumers.
|
static ThreadPoolBulkheadRegistry |
of(java.util.Map<java.lang.String,ThreadPoolBulkheadConfig> configs,
java.util.List<io.github.resilience4j.core.registry.RegistryEventConsumer<ThreadPoolBulkhead>> registryEventConsumers,
io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
Creates a ThreadPoolBulkheadRegistry with a Map of shared ThreadPoolBulkhead configurations
and a list of ThreadPoolBulkhead registry event consumers.
|
static ThreadPoolBulkheadRegistry |
of(java.util.Map<java.lang.String,ThreadPoolBulkheadConfig> configs,
io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
Creates a ThreadPoolBulkheadRegistry with a Map of shared ThreadPoolBulkhead configurations.
|
static ThreadPoolBulkheadRegistry |
of(java.util.Map<java.lang.String,ThreadPoolBulkheadConfig> configs,
io.github.resilience4j.core.registry.RegistryEventConsumer<ThreadPoolBulkhead> registryEventConsumer)
Creates a ThreadPoolBulkheadRegistry with a Map of shared ThreadPoolBulkhead configurations
and a ThreadPoolBulkhead registry event consumer.
|
static ThreadPoolBulkheadRegistry |
of(java.util.Map<java.lang.String,ThreadPoolBulkheadConfig> configs,
io.github.resilience4j.core.registry.RegistryEventConsumer<ThreadPoolBulkhead> registryEventConsumer,
io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
Creates a ThreadPoolBulkheadRegistry with a Map of shared ThreadPoolBulkhead configurations
and a ThreadPoolBulkhead registry event consumer.
|
static ThreadPoolBulkheadRegistry |
of(ThreadPoolBulkheadConfig bulkheadConfig)
Creates a BulkheadRegistry with a custom Bulkhead configuration.
|
static ThreadPoolBulkheadRegistry |
of(ThreadPoolBulkheadConfig bulkheadConfig,
java.util.List<io.github.resilience4j.core.registry.RegistryEventConsumer<ThreadPoolBulkhead>> registryEventConsumers)
Creates a ThreadPoolBulkheadRegistry with a custom default ThreadPoolBulkhead configuration
and a list of ThreadPoolBulkhead registry event consumers.
|
static ThreadPoolBulkheadRegistry |
of(ThreadPoolBulkheadConfig bulkheadConfig,
io.github.resilience4j.core.registry.RegistryEventConsumer<ThreadPoolBulkhead> registryEventConsumer)
Creates a ThreadPoolBulkheadRegistry with a custom default ThreadPoolBulkhead configuration
and a ThreadPoolBulkhead registry event consumer.
|
static ThreadPoolBulkheadRegistry |
ofDefaults()
Creates a ThreadPoolBulkheadRegistry with a default ThreadPoolBulkhead configuration
|
static ThreadPoolBulkheadRegistry |
ofDefaults(io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
Creates a ThreadPoolBulkheadRegistry with a default ThreadPoolBulkhead configuration
Tags added to the registry will be added to every instance created by this registry.
|
static ThreadPoolBulkheadRegistry of(ThreadPoolBulkheadConfig bulkheadConfig)
bulkheadConfig - a custom ThreadPoolBulkhead configurationstatic ThreadPoolBulkheadRegistry of(ThreadPoolBulkheadConfig bulkheadConfig, io.github.resilience4j.core.registry.RegistryEventConsumer<ThreadPoolBulkhead> registryEventConsumer)
bulkheadConfig - a custom default ThreadPoolBulkhead configuration.registryEventConsumer - a ThreadPoolBulkhead registry event consumer.static ThreadPoolBulkheadRegistry of(ThreadPoolBulkheadConfig bulkheadConfig, java.util.List<io.github.resilience4j.core.registry.RegistryEventConsumer<ThreadPoolBulkhead>> registryEventConsumers)
bulkheadConfig - a custom default ThreadPoolBulkhead configuration.registryEventConsumers - a list of ThreadPoolBulkhead registry event consumers.static ThreadPoolBulkheadRegistry ofDefaults()
static ThreadPoolBulkheadRegistry ofDefaults(io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
Tags added to the registry will be added to every instance created by this registry.
tags - default tags to add to the registrystatic ThreadPoolBulkheadRegistry of(java.util.Map<java.lang.String,ThreadPoolBulkheadConfig> configs)
configs - a Map of shared Bulkhead configurationsstatic ThreadPoolBulkheadRegistry of(java.util.Map<java.lang.String,ThreadPoolBulkheadConfig> configs, io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
Tags added to the registry will be added to every instance created by this registry.
configs - a Map of shared Bulkhead configurationstags - default tags to add to the registrystatic ThreadPoolBulkheadRegistry of(java.util.Map<java.lang.String,ThreadPoolBulkheadConfig> configs, io.github.resilience4j.core.registry.RegistryEventConsumer<ThreadPoolBulkhead> registryEventConsumer)
configs - a Map of shared ThreadPoolBulkhead configurations.registryEventConsumer - a ThreadPoolBulkhead registry event consumer.static ThreadPoolBulkheadRegistry of(java.util.Map<java.lang.String,ThreadPoolBulkheadConfig> configs, io.github.resilience4j.core.registry.RegistryEventConsumer<ThreadPoolBulkhead> registryEventConsumer, io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
Tags added to the registry will be added to every instance created by this registry.
configs - a Map of shared ThreadPoolBulkhead configurations.registryEventConsumer - a ThreadPoolBulkhead registry event consumer.tags - default tags to add to the registrystatic ThreadPoolBulkheadRegistry of(java.util.Map<java.lang.String,ThreadPoolBulkheadConfig> configs, java.util.List<io.github.resilience4j.core.registry.RegistryEventConsumer<ThreadPoolBulkhead>> registryEventConsumers)
configs - a Map of shared ThreadPoolBulkhead configurations.registryEventConsumers - a list of ThreadPoolBulkhead registry event consumers.static ThreadPoolBulkheadRegistry of(java.util.Map<java.lang.String,ThreadPoolBulkheadConfig> configs, java.util.List<io.github.resilience4j.core.registry.RegistryEventConsumer<ThreadPoolBulkhead>> registryEventConsumers, io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
Tags added to the registry will be added to every instance created by this registry.
configs - a Map of shared ThreadPoolBulkhead configurations.registryEventConsumers - a list of ThreadPoolBulkhead registry event consumers.tags - Tags to add to the ThreadPoolBulkheadio.vavr.collection.Seq<ThreadPoolBulkhead> getAllBulkheads()
ThreadPoolBulkhead instances.ThreadPoolBulkhead instances.ThreadPoolBulkhead bulkhead(java.lang.String name)
ThreadPoolBulkhead or creates a new one with default
configuration.name - the name of the ThreadPoolBulkheadThreadPoolBulkheadThreadPoolBulkhead bulkhead(java.lang.String name, io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
ThreadPoolBulkhead or creates a new one with default
configuration.name - the name of the ThreadPoolBulkheadtags - Tags to add to the ThreadPoolBulkheadThreadPoolBulkheadThreadPoolBulkhead bulkhead(java.lang.String name, ThreadPoolBulkheadConfig config)
ThreadPoolBulkhead or creates a new one with a custom
ThreadPoolBulkhead configuration.name - the name of the ThreadPoolBulkheadconfig - a custom ThreadPoolBulkheadConfig configurationThreadPoolBulkheadThreadPoolBulkhead bulkhead(java.lang.String name, ThreadPoolBulkheadConfig config, io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
ThreadPoolBulkhead or creates a new one with a custom
ThreadPoolBulkhead configuration.
The tags passed 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.
name - the name of the ThreadPoolBulkheadconfig - a custom ThreadPoolBulkheadConfig configurationtags - tags to add to the ThreadPoolBulkheadThreadPoolBulkheadThreadPoolBulkhead bulkhead(java.lang.String name, java.util.function.Supplier<ThreadPoolBulkheadConfig> bulkheadConfigSupplier)
ThreadPoolBulkhead or creates a new one with a custom
ThreadPoolBulkhead configuration.name - the name of the ThreadPoolBulkheadbulkheadConfigSupplier - a custom ThreadPoolBulkhead configuration supplierThreadPoolBulkheadThreadPoolBulkhead bulkhead(java.lang.String name, java.util.function.Supplier<ThreadPoolBulkheadConfig> bulkheadConfigSupplier, io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
ThreadPoolBulkhead or creates a new one with a custom
ThreadPoolBulkhead configuration.
The tags passed 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.
name - the name of the ThreadPoolBulkheadbulkheadConfigSupplier - a custom ThreadPoolBulkhead configuration suppliertags - tags to add to the ThreadPoolBulkheadThreadPoolBulkheadThreadPoolBulkhead bulkhead(java.lang.String name, java.lang.String configName)
ThreadPoolBulkhead or creates a new one.
The configuration must have been added upfront via Registry.addConfiguration(String, Object).name - the name of the ThreadPoolBulkheadconfigName - the name of the shared configurationThreadPoolBulkheadThreadPoolBulkhead bulkhead(java.lang.String name, java.lang.String configName, io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
ThreadPoolBulkhead or creates a new one.
The configuration must have been added upfront via Registry.addConfiguration(String, Object).
The tags passed 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.
name - the name of the ThreadPoolBulkheadconfigName - the name of the shared configurationtags - tags to add to the ThreadPoolBulkheadThreadPoolBulkheadstatic ThreadPoolBulkheadRegistry.Builder custom()
ThreadPoolBulkheadRegistry.Builder