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>,java.lang.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,java.lang.Exception>
- Enclosing class:
- BackgroundInitializer<T>
public static class BackgroundInitializer.Builder<I extends BackgroundInitializer<T>,T> extends AbstractConcurrentInitializer.AbstractBuilder<I,T,BackgroundInitializer.Builder<I,T>,java.lang.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 Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description I
get()
Supplies an objectBackgroundInitializer.Builder<I,T>
setExternalExecutor(java.util.concurrent.ExecutorService externalExecutor)
Sets the external executor service for executing tasks.-
Methods inherited from class org.apache.commons.lang3.concurrent.AbstractConcurrentInitializer.AbstractBuilder
getCloser, getInitializer, setCloser, setInitializer
-
-
-
-
Method Detail
-
get
public I get()
Description copied from interface:FailableSupplier
Supplies an object- Returns:
- a result
-
setExternalExecutor
public BackgroundInitializer.Builder<I,T> setExternalExecutor(java.util.concurrent.ExecutorService externalExecutor)
Sets the external executor service for executing tasks. null is an permitted value.- Parameters:
externalExecutor
- theExecutorService
to be used.- Returns:
- this
- See Also:
BackgroundInitializer.setExternalExecutor(ExecutorService)
-
-