- java.lang.Object
-
- io.helidon.faulttolerance.Bulkhead.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Bulkheadbuild()Build the instance from this builder.Bulkhead.Builderexecutor(Supplier<? extends ExecutorService> executor)Configure executor service to use for executing tasks asynchronously.Bulkhead.Builderlimit(int limit)Maximal number of parallel requests going through this bulkhead.Bulkhead.Buildername(String name)Name is useful for debugging and in exception handling.Bulkhead.BuilderqueueLength(int queueLength)Maximal number of enqueued requests waiting for processing.
-
-
-
Method Detail
-
build
public Bulkhead build()
Description copied from interface:BuilderBuild the instance from this builder.
-
executor
public Bulkhead.Builder executor(Supplier<? extends ExecutorService> executor)
Configure executor service to use for executing tasks asynchronously.- Parameters:
executor- executor service supplier- Returns:
- updated builder instance
-
limit
public Bulkhead.Builder limit(int limit)
Maximal number of parallel requests going through this bulkhead. When the limit is reached, additional requests are enqueued.- Parameters:
limit- maximal number of parallel calls, defaults is 10- Returns:
- updated builder instance
-
queueLength
public Bulkhead.Builder queueLength(int queueLength)
Maximal number of enqueued requests waiting for processing. When the limit is reached, additional attempts to invoke a request will receive aBulkheadException.- Parameters:
queueLength- length of queue- Returns:
- updated builder instance
-
name
public Bulkhead.Builder name(String name)
Name is useful for debugging and in exception handling.- Parameters:
name- name of this bulkhead- Returns:
- updated builder instance
-
-