Record Class Config.Executor
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Config.Executor
- Enclosing class:
Config
public static record Config.Executor(Integer minPoolSize, Integer maxPoolSize, Boolean allowCoreThreadTimeout, Config.Executor.WorkQueue workQueue, Config.Executor.DurationUnit keepAlive, Config.Executor.DurationUnit shutdownTimeout, Config.Executor.DurationUnit stallTimeout)
extends Record
- Since:
- 1.7.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic classstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionExecutor(Integer minPoolSize, Integer maxPoolSize, Boolean allowCoreThreadTimeout, Config.Executor.WorkQueue workQueue, Config.Executor.DurationUnit keepAlive, Config.Executor.DurationUnit shutdownTimeout, Config.Executor.DurationUnit stallTimeout) Creates an instance of aExecutorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallowCoreThreadTimeoutrecord component.builder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thekeepAliverecord component.Returns the value of themaxPoolSizerecord component.Returns the value of theminPoolSizerecord component.Returns the value of theshutdownTimeoutrecord component.Returns the value of thestallTimeoutrecord component.final StringtoString()Returns a string representation of this record class.withAllowCoreThreadTimeout(Boolean allowCoreThreadTimeout) withKeepAlive(Config.Executor.DurationUnit keepAlive) withMaxPoolSize(Integer maxPoolSize) withMinPoolSize(Integer minPoolSize) withShutdownTimeout(Config.Executor.DurationUnit shutdownTimeout) withStallTimeout(Config.Executor.DurationUnit stallTimeout) withWorkQueue(Config.Executor.WorkQueue workQueue) Returns the value of theworkQueuerecord component.
-
Constructor Details
-
Executor
public Executor(Integer minPoolSize, Integer maxPoolSize, Boolean allowCoreThreadTimeout, Config.Executor.WorkQueue workQueue, Config.Executor.DurationUnit keepAlive, Config.Executor.DurationUnit shutdownTimeout, Config.Executor.DurationUnit stallTimeout) Creates an instance of aExecutorrecord class.- Parameters:
minPoolSize- the value for theminPoolSizerecord componentmaxPoolSize- the value for themaxPoolSizerecord componentallowCoreThreadTimeout- the value for theallowCoreThreadTimeoutrecord componentworkQueue- the value for theworkQueuerecord componentkeepAlive- the value for thekeepAliverecord componentshutdownTimeout- the value for theshutdownTimeoutrecord componentstallTimeout- the value for thestallTimeoutrecord component
-
-
Method Details
-
builder
-
toBuilder
-
withMinPoolSize
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withMaxPoolSize
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAllowCoreThreadTimeout
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withWorkQueue
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withKeepAlive
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withShutdownTimeout
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withStallTimeout
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
minPoolSize
Returns the value of theminPoolSizerecord component.- Returns:
- the value of the
minPoolSizerecord component
-
maxPoolSize
Returns the value of themaxPoolSizerecord component.- Returns:
- the value of the
maxPoolSizerecord component
-
allowCoreThreadTimeout
Returns the value of theallowCoreThreadTimeoutrecord component.- Returns:
- the value of the
allowCoreThreadTimeoutrecord component
-
workQueue
Returns the value of theworkQueuerecord component.- Returns:
- the value of the
workQueuerecord component
-
keepAlive
Returns the value of thekeepAliverecord component.- Returns:
- the value of the
keepAliverecord component
-
shutdownTimeout
Returns the value of theshutdownTimeoutrecord component.- Returns:
- the value of the
shutdownTimeoutrecord component
-
stallTimeout
Returns the value of thestallTimeoutrecord component.- Returns:
- the value of the
stallTimeoutrecord component
-