Class ThreadPoolBulkheadConfigurationProperties.InstanceProperties
java.lang.Object
io.github.resilience4j.common.bulkhead.configuration.ThreadPoolBulkheadConfigurationProperties.InstanceProperties
- Enclosing class:
- ThreadPoolBulkheadConfigurationProperties
public static class ThreadPoolBulkheadConfigurationProperties.InstanceProperties
extends java.lang.Object
Class storing property values for configuring
Bulkhead instances.-
Constructor Summary
Constructors Constructor Description InstanceProperties() -
Method Summary
-
Constructor Details
-
InstanceProperties
public InstanceProperties()
-
-
Method Details
-
getMaxThreadPoolSize
public int getMaxThreadPoolSize() -
setMaxThreadPoolSize
public ThreadPoolBulkheadConfigurationProperties.InstanceProperties setMaxThreadPoolSize(int maxThreadPoolSize) -
getCoreThreadPoolSize
public int getCoreThreadPoolSize() -
setCoreThreadPoolSize
public ThreadPoolBulkheadConfigurationProperties.InstanceProperties setCoreThreadPoolSize(int coreThreadPoolSize) -
getQueueCapacity
public int getQueueCapacity() -
setQueueCapacity
public ThreadPoolBulkheadConfigurationProperties.InstanceProperties setQueueCapacity(int queueCapacity) -
getKeepAliveDuration
public java.time.Duration getKeepAliveDuration() -
setKeepAliveDuration
public ThreadPoolBulkheadConfigurationProperties.InstanceProperties setKeepAliveDuration(java.time.Duration keepAliveDuration) -
getEventConsumerBufferSize
public java.lang.Integer getEventConsumerBufferSize() -
setEventConsumerBufferSize
public ThreadPoolBulkheadConfigurationProperties.InstanceProperties setEventConsumerBufferSize(java.lang.Integer eventConsumerBufferSize) -
getWritableStackTraceEnabled
public java.lang.Boolean getWritableStackTraceEnabled() -
setWritableStackTraceEnabled
public ThreadPoolBulkheadConfigurationProperties.InstanceProperties setWritableStackTraceEnabled(boolean writableStackTraceEnabled) -
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.core.ContextPropagator>[] getContextPropagators()Getter return array ofContextPropagatorclass- Returns:
- array of
ContextPropagatorclasses
-
setContextPropagator
@Deprecated public ThreadPoolBulkheadConfigurationProperties.InstanceProperties setContextPropagator(java.lang.Class<? extends io.github.resilience4j.core.ContextPropagator>... contextPropagators)Deprecated.Set the class type ofContextPropagator- Parameters:
contextPropagators- subclass ofContextPropagator- Returns:
- return builder instance back for fluent set up
-
setContextPropagators
public ThreadPoolBulkheadConfigurationProperties.InstanceProperties setContextPropagators(java.lang.Class<? extends io.github.resilience4j.core.ContextPropagator>... contextPropagators)Set the class type ofContextPropagator- Parameters:
contextPropagators- subclass ofContextPropagator- Returns:
- return builder instance back for fluent set up
-