Class CommonThreadPoolBulkheadConfigurationProperties.InstanceProperties
java.lang.Object
io.github.resilience4j.common.bulkhead.configuration.CommonThreadPoolBulkheadConfigurationProperties.InstanceProperties
- Enclosing class:
- CommonThreadPoolBulkheadConfigurationProperties
public static class CommonThreadPoolBulkheadConfigurationProperties.InstanceProperties
extends Object
Class storing property values for configuring
Bulkhead instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the shared configuration name.Class<? extends io.github.resilience4j.core.ContextPropagator>[]Getter return array ofContextPropagatorclassintintintsetBaseConfig(String baseConfig) Sets the shared configuration name.setContextPropagators(Class<? extends io.github.resilience4j.core.ContextPropagator>... contextPropagators) Set the class type ofContextPropagatorsetCoreThreadPoolSize(int coreThreadPoolSize) setEventConsumerBufferSize(Integer eventConsumerBufferSize) setKeepAliveDuration(Duration keepAliveDuration) setMaxThreadPoolSize(int maxThreadPoolSize) setQueueCapacity(int queueCapacity) setWritableStackTraceEnabled(boolean writableStackTraceEnabled)
-
Constructor Details
-
InstanceProperties
public InstanceProperties()
-
-
Method Details
-
getMaxThreadPoolSize
public int getMaxThreadPoolSize() -
setMaxThreadPoolSize
public CommonThreadPoolBulkheadConfigurationProperties.InstanceProperties setMaxThreadPoolSize(int maxThreadPoolSize) -
getCoreThreadPoolSize
public int getCoreThreadPoolSize() -
setCoreThreadPoolSize
public CommonThreadPoolBulkheadConfigurationProperties.InstanceProperties setCoreThreadPoolSize(int coreThreadPoolSize) -
getQueueCapacity
public int getQueueCapacity() -
setQueueCapacity
public CommonThreadPoolBulkheadConfigurationProperties.InstanceProperties setQueueCapacity(int queueCapacity) -
getKeepAliveDuration
-
setKeepAliveDuration
public CommonThreadPoolBulkheadConfigurationProperties.InstanceProperties setKeepAliveDuration(Duration keepAliveDuration) -
getEventConsumerBufferSize
-
setEventConsumerBufferSize
public CommonThreadPoolBulkheadConfigurationProperties.InstanceProperties setEventConsumerBufferSize(Integer eventConsumerBufferSize) -
getWritableStackTraceEnabled
-
setWritableStackTraceEnabled
public CommonThreadPoolBulkheadConfigurationProperties.InstanceProperties setWritableStackTraceEnabled(boolean writableStackTraceEnabled) -
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 CommonThreadPoolBulkheadConfigurationProperties.InstanceProperties setBaseConfig(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
Getter return array ofContextPropagatorclass- Returns:
- array of
ContextPropagatorclasses
-
setContextPropagators
public CommonThreadPoolBulkheadConfigurationProperties.InstanceProperties setContextPropagators(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
-