Class BackgroundInitializer.Builder<I extends BackgroundInitializer<T>,T>
java.lang.Object
org.apache.commons.lang3.builder.AbstractSupplier<I,B,E>
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:
T
- the type of the object managed by the initializer.I
- the type of the initializer managed 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
-
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, setInitializer
Methods 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:FailableSupplier
Supplies an object- Returns:
- a result
-
setExternalExecutor
Sets the external executor service for executing tasks. null is a permitted value.- Parameters:
externalExecutor
- theExecutorService
to be used.- Returns:
this
instance.- See Also:
-