Class BulkheadConfig.Builder
java.lang.Object
io.helidon.faulttolerance.BulkheadConfig.BuilderBase<BulkheadConfig.Builder, BulkheadConfig>
io.helidon.faulttolerance.BulkheadConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<BulkheadConfig.Builder, BulkheadConfig>, Builder<BulkheadConfig.Builder, Bulkhead>, ConfigBuilderSupport.ConfiguredBuilder<BulkheadConfig.Builder, BulkheadConfig>, Supplier<Bulkhead>
- Enclosing interface:
BulkheadConfig
public static class BulkheadConfig.Builder
extends BulkheadConfig.BuilderBase<BulkheadConfig.Builder, BulkheadConfig>
implements Builder<BulkheadConfig.Builder, Bulkhead>
Fluent API builder for
Bulkhead.-
Nested Class Summary
Nested classes/interfaces inherited from class BulkheadConfig.BuilderBase
BulkheadConfig.BuilderBase.BulkheadConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class BulkheadConfig.BuilderBase
addQueueListener, addQueueListeners, clearName, clearQueueListeners, config, config, enableMetrics, enableMetrics, from, from, limit, limit, name, name, preBuildPrototype, queueLength, queueLength, queueListeners, queueListeners, toString, validatePrototypeModifier and TypeMethodDescriptionaddQueueListener(Bulkhead.QueueListener queueListener) Queue listeners of this bulkhead.addQueueListeners(List<? extends Bulkhead.QueueListener> queueListeners) Queue listeners of this bulkhead.Clear existing value of name.Clear all queueListeners.config()Configuration used to configure this instance.Update builder from configuration (node of this type).booleanFlag to enable metrics for this instance.enableMetrics(boolean enableMetrics) Flag to enable metrics for this instance.from(BulkheadConfig prototype) Update this builder from an existing prototype instance.from(BulkheadConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.intlimit()Maximal number of parallel requests going through this bulkhead.limit(int limit) Maximal number of parallel requests going through this bulkhead.name()Name for debugging, error reporting, monitoring.Name for debugging, error reporting, monitoring.protected voidHandles providers and decorators.intMaximal number of enqueued requests waiting for processing.queueLength(int queueLength) Maximal number of enqueued requests waiting for processing.Queue listeners of this bulkhead.queueListeners(List<? extends Bulkhead.QueueListener> queueListeners) Queue listeners of this bulkhead.toString()protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault Bulkheadget()default BulkheadConfig.Builderidentity()Instance of this builder as the correct type.default BulkheadConfig.Builderupdate(Consumer<BulkheadConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault BulkheadConfig.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<BulkheadConfig.Builder, BulkheadConfig>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<BulkheadConfig.Builder, Bulkhead>- Returns:
- instance of the built type
-