Class ThreadPoolBulkheadConfigurationProperties.InstanceProperties

  • Enclosing class:
    ThreadPoolBulkheadConfigurationProperties

    public static class ThreadPoolBulkheadConfigurationProperties.InstanceProperties
    extends java.lang.Object
    Class storing property values for configuring Bulkhead instances.
    • Constructor Detail

      • InstanceProperties

        public InstanceProperties()
    • Method Detail

      • getMaxThreadPoolSize

        public int getMaxThreadPoolSize()
      • getCoreThreadPoolSize

        public int getCoreThreadPoolSize()
      • getQueueCapacity

        public int getQueueCapacity()
      • getKeepAliveDuration

        public java.time.Duration getKeepAliveDuration()
      • getEventConsumerBufferSize

        public java.lang.Integer getEventConsumerBufferSize()
      • getWritableStackTraceEnabled

        public java.lang.Boolean getWritableStackTraceEnabled()
      • getBaseConfig

        @Nullable
        public java.lang.String getBaseConfig()
        Gets the shared configuration name. If this is set, the configuration builder will use the the shared configuration backend over this one.
        Returns:
        The shared configuration name.
      • setBaseConfig

        public ThreadPoolBulkheadConfigurationProperties.InstanceProperties setBaseConfig​(java.lang.String baseConfig)
        Sets the shared configuration name. If this is set, the configuration builder will use the the shared configuration backend over this one.
        Parameters:
        baseConfig - The shared configuration name.
      • getContextPropagators

        public java.lang.Class<? extends io.github.resilience4j.bulkhead.ContextPropagator>[] getContextPropagators()
        Getter return array of ContextPropagator class
        Returns:
        array of ContextPropagator classes
      • setContextPropagator

        @Deprecated
        public ThreadPoolBulkheadConfigurationProperties.InstanceProperties setContextPropagator​(java.lang.Class<? extends io.github.resilience4j.bulkhead.ContextPropagator>... contextPropagators)
        Deprecated.
        Set the class type of ContextPropagator
        Parameters:
        contextPropagators - subclass of ContextPropagator
        Returns:
        return builder instance back for fluent set up
      • setContextPropagators

        public ThreadPoolBulkheadConfigurationProperties.InstanceProperties setContextPropagators​(java.lang.Class<? extends io.github.resilience4j.bulkhead.ContextPropagator>... contextPropagators)
        Set the class type of ContextPropagator
        Parameters:
        contextPropagators - subclass of ContextPropagator
        Returns:
        return builder instance back for fluent set up