Interface ImmutableThreadFactoryProvider.BuildFinal
-
- All Known Implementing Classes:
ImmutableThreadFactoryProvider.Builder
- Enclosing class:
- ImmutableThreadFactoryProvider
public static interface ImmutableThreadFactoryProvider.BuildFinal
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ImmutableThreadFactoryProvider
build()
Builds a newImmutableThreadFactoryProvider
.ImmutableThreadFactoryProvider.BuildFinal
daemon(boolean daemon)
Initializes the value for thedaemon
attribute.ImmutableThreadFactoryProvider.BuildFinal
priority(int priority)
Initializes the optional valuepriority
to priority.ImmutableThreadFactoryProvider.BuildFinal
priority(Optional<Integer> priority)
Initializes the optional valuepriority
to priority.
-
-
-
Method Detail
-
priority
ImmutableThreadFactoryProvider.BuildFinal priority(int priority)
Initializes the optional valuepriority
to priority.- Parameters:
priority
- The value for priority- Returns:
this
builder for chained invocation
-
priority
ImmutableThreadFactoryProvider.BuildFinal priority(Optional<Integer> priority)
Initializes the optional valuepriority
to priority.- Parameters:
priority
- The value for priority- Returns:
this
builder for use in a chained invocation
-
daemon
ImmutableThreadFactoryProvider.BuildFinal daemon(boolean daemon)
Initializes the value for thedaemon
attribute.If not set, this attribute will have a default value as returned by the initializer of
daemon
.- Parameters:
daemon
- The value for daemon- Returns:
this
builder for use in a chained invocation
-
build
ImmutableThreadFactoryProvider build()
Builds a newImmutableThreadFactoryProvider
.- Returns:
- An immutable instance of ThreadFactoryProvider
- Throws:
IllegalStateException
- if any required attributes are missing
-
-