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.ObjectClass storing property values for configuringBulkheadinstances.
-
-
Constructor Summary
Constructors Constructor Description InstanceProperties()
-
Method Summary
-
-
-
Method Detail
-
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.bulkhead.ContextPropagator>[] getContextPropagators()
Getter return array ofContextPropagatorclass- Returns:
- array of
ContextPropagatorclasses
-
setContextPropagator
@Deprecated public ThreadPoolBulkheadConfigurationProperties.InstanceProperties setContextPropagator(java.lang.Class<? extends io.github.resilience4j.bulkhead.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.bulkhead.ContextPropagator>... contextPropagators)
Set the class type ofContextPropagator- Parameters:
contextPropagators- subclass ofContextPropagator- Returns:
- return builder instance back for fluent set up
-
-