On this page

BackgroundInitializer.Builder

public static class org.apache.commons.lang3.concurrent.BackgroundInitializer.Builder<I extends BackgroundInitializer<T>, T> extends AbstractConcurrentInitializer.AbstractBuilder<I, T, BackgroundInitializer.Builder<I, T>, Exception>[source]

Builds a new instance.

Type parameters:
  • <T> – The type of results supplied by this builder.

  • <I> – The type of the initializer managed by this builder.

Since:

3.14.0

Constructors

Builder()

Constructs a new instance.

public Builder()[source]

Constructs a new instance.

Methods

I

get()

Supplies an object

BackgroundInitializer.Builder<I, T>

setExternalExecutor(ExecutorService externalExecutor)

Sets the external executor service for executing tasks.

public I get()[source]

Supplies an object

Returns:

A result

public BackgroundInitializer.Builder<I, T> setExternalExecutor(ExecutorService externalExecutor)[source]

Sets the external executor service for executing tasks. null is a permitted value.

Parameters:

externalExecutor – The ExecutorService to be used.

Returns:

this instance.

See also:

BackgroundInitializer.setExternalExecutor(ExecutorService)