Class BackgroundInitializer.Builder<I extends BackgroundInitializer<T>,T>
java.lang.Object
org.apache.commons.lang3.builder.AbstractSupplier<I,BackgroundInitializer.Builder<I,T>,Exception>
org.apache.commons.lang3.concurrent.AbstractConcurrentInitializer.AbstractBuilder<I,T,BackgroundInitializer.Builder<I,T>,Exception>
org.apache.commons.lang3.concurrent.BackgroundInitializer.Builder<I,T>
- Type Parameters:
I- The type of the initializer managed by this builder.T- The type of results supplied by this builder.
- All Implemented Interfaces:
FailableSupplier<I,Exception>
- Enclosing class:
BackgroundInitializer<T>
public static class BackgroundInitializer.Builder<I extends BackgroundInitializer<T>,T>
extends AbstractConcurrentInitializer.AbstractBuilder<I,T,BackgroundInitializer.Builder<I,T>,Exception>
Builds a new instance.
- Since:
- 3.14.0
-
Field Summary
Fields inherited from interface org.apache.commons.lang3.function.FailableSupplier
NUL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()Supplies an objectsetExternalExecutor(ExecutorService externalExecutor) Sets the external executor service for executing tasks. null is a permitted value.Methods inherited from class org.apache.commons.lang3.concurrent.AbstractConcurrentInitializer.AbstractBuilder
getCloser, getInitializer, setCloser, setInitializerMethods inherited from class org.apache.commons.lang3.builder.AbstractSupplier
asThis
-
Constructor Details
-
Builder
public Builder()Constructs a new instance.
-
-
Method Details
-
get
Description copied from interface:FailableSupplierSupplies an object- Returns:
- a result
-
setExternalExecutor
Sets the external executor service for executing tasks. null is a permitted value.- Parameters:
externalExecutor- theExecutorServiceto be used.- Returns:
thisinstance.- See Also:
-