public static class BulkheadConfig.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
BulkheadConfig |
build()
Builds a BulkheadConfig
|
BulkheadConfig.Builder |
maxConcurrentCalls(int maxConcurrentCalls)
Configures the max amount of concurrent calls the bulkhead will support.
|
BulkheadConfig.Builder |
maxWaitTime(long maxWaitTime)
Configures a maximum amount of time in ms the calling thread will wait to enter the bulkhead.
|
public BulkheadConfig.Builder maxConcurrentCalls(int maxConcurrentCalls)
maxConcurrentCalls
- max concurrent callspublic BulkheadConfig.Builder maxWaitTime(long maxWaitTime)
maxWaitTime
- maximum wait time for bulkhead entrypublic BulkheadConfig build()