Class InMemoryThreadPoolBulkheadRegistry

    • Constructor Detail

      • InMemoryThreadPoolBulkheadRegistry

        public InMemoryThreadPoolBulkheadRegistry()
        The constructor with default default.
      • InMemoryThreadPoolBulkheadRegistry

        public InMemoryThreadPoolBulkheadRegistry​(io.vavr.collection.Map<java.lang.String,​java.lang.String> tags)
      • InMemoryThreadPoolBulkheadRegistry

        public InMemoryThreadPoolBulkheadRegistry​(java.util.Map<java.lang.String,​ThreadPoolBulkheadConfig> configs)
      • InMemoryThreadPoolBulkheadRegistry

        public InMemoryThreadPoolBulkheadRegistry​(java.util.Map<java.lang.String,​ThreadPoolBulkheadConfig> configs,
                                                  io.vavr.collection.Map<java.lang.String,​java.lang.String> tags)
      • InMemoryThreadPoolBulkheadRegistry

        public InMemoryThreadPoolBulkheadRegistry​(java.util.Map<java.lang.String,​ThreadPoolBulkheadConfig> configs,
                                                  io.github.resilience4j.core.registry.RegistryEventConsumer<ThreadPoolBulkhead> registryEventConsumer)
      • InMemoryThreadPoolBulkheadRegistry

        public InMemoryThreadPoolBulkheadRegistry​(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)
      • InMemoryThreadPoolBulkheadRegistry

        public InMemoryThreadPoolBulkheadRegistry​(java.util.Map<java.lang.String,​ThreadPoolBulkheadConfig> configs,
                                                  java.util.List<io.github.resilience4j.core.registry.RegistryEventConsumer<ThreadPoolBulkhead>> registryEventConsumers)
      • InMemoryThreadPoolBulkheadRegistry

        public InMemoryThreadPoolBulkheadRegistry​(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)
      • InMemoryThreadPoolBulkheadRegistry

        public InMemoryThreadPoolBulkheadRegistry​(ThreadPoolBulkheadConfig defaultConfig)
        The constructor with custom default config.
        Parameters:
        defaultConfig - The default config.
      • InMemoryThreadPoolBulkheadRegistry

        public InMemoryThreadPoolBulkheadRegistry​(ThreadPoolBulkheadConfig defaultConfig,
                                                  io.vavr.collection.Map<java.lang.String,​java.lang.String> tags)
      • InMemoryThreadPoolBulkheadRegistry

        public InMemoryThreadPoolBulkheadRegistry​(ThreadPoolBulkheadConfig defaultConfig,
                                                  io.github.resilience4j.core.registry.RegistryEventConsumer<ThreadPoolBulkhead> registryEventConsumer)
      • InMemoryThreadPoolBulkheadRegistry

        public InMemoryThreadPoolBulkheadRegistry​(ThreadPoolBulkheadConfig defaultConfig,
                                                  io.github.resilience4j.core.registry.RegistryEventConsumer<ThreadPoolBulkhead> registryEventConsumer,
                                                  io.vavr.collection.Map<java.lang.String,​java.lang.String> tags)
      • InMemoryThreadPoolBulkheadRegistry

        public InMemoryThreadPoolBulkheadRegistry​(ThreadPoolBulkheadConfig defaultConfig,
                                                  java.util.List<io.github.resilience4j.core.registry.RegistryEventConsumer<ThreadPoolBulkhead>> registryEventConsumers)
      • InMemoryThreadPoolBulkheadRegistry

        public InMemoryThreadPoolBulkheadRegistry​(ThreadPoolBulkheadConfig defaultConfig,
                                                  java.util.List<io.github.resilience4j.core.registry.RegistryEventConsumer<ThreadPoolBulkhead>> registryEventConsumers,
                                                  io.vavr.collection.Map<java.lang.String,​java.lang.String> tags)
      • InMemoryThreadPoolBulkheadRegistry

        public InMemoryThreadPoolBulkheadRegistry​(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,
                                                  io.github.resilience4j.core.RegistryStore<ThreadPoolBulkhead> registryStore)
    • Method Detail

      • bulkhead

        public 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.

        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.

        Specified by:
        bulkhead in interface ThreadPoolBulkheadRegistry
        Parameters:
        name - the name of the ThreadPoolBulkhead
        config - a custom ThreadPoolBulkheadConfig configuration
        tags - tags to add to the ThreadPoolBulkhead
        Returns:
        The ThreadPoolBulkhead
      • bulkhead

        public 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.

        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.

        Specified by:
        bulkhead in interface ThreadPoolBulkheadRegistry
        Parameters:
        name - the name of the ThreadPoolBulkhead
        bulkheadConfigSupplier - a custom ThreadPoolBulkhead configuration supplier
        tags - tags to add to the ThreadPoolBulkhead
        Returns:
        The ThreadPoolBulkhead
      • bulkhead

        public ThreadPoolBulkhead bulkhead​(java.lang.String name,
                                           java.lang.String configName)
        Returns a managed ThreadPoolBulkhead or creates a new one. The configuration must have been added upfront via Registry.addConfiguration(String, Object).
        Specified by:
        bulkhead in interface ThreadPoolBulkheadRegistry
        Parameters:
        name - the name of the ThreadPoolBulkhead
        configName - the name of the shared configuration
        Returns:
        The ThreadPoolBulkhead
      • bulkhead

        public 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. 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.

        Specified by:
        bulkhead in interface ThreadPoolBulkheadRegistry
        Parameters:
        name - the name of the ThreadPoolBulkhead
        configName - the name of the shared configuration
        tags - tags to add to the ThreadPoolBulkhead
        Returns:
        The ThreadPoolBulkhead
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception