java.lang.Object
io.helidon.faulttolerance.Bulkhead.Builder
- All Implemented Interfaces:
Builder<Bulkhead.Builder,,Bulkhead> Supplier<Bulkhead>
- Enclosing interface:
- Bulkhead
Fluent API builder for
Bulkhead.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the instance from this builder.executor(Supplier<? extends ExecutorService> executor) Configure executor service to use for executing tasks asynchronously.limit(int limit) Maximal number of parallel requests going through this bulkhead.A name assigned for debugging, error reporting or configuration purposes.queueLength(int queueLength) Maximal number of enqueued requests waiting for processing.
-
Method Details
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<Bulkhead.Builder,Bulkhead> - Returns:
- instance of the built type
-
executor
Configure executor service to use for executing tasks asynchronously.- Parameters:
executor- executor service supplier- Returns:
- updated builder instance
-
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
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
A name assigned for debugging, error reporting or configuration purposes.- Parameters:
name- the name- Returns:
- updated builder instance
-