Record Class LoomCarrierConfiguration
java.lang.Object
java.lang.Record
io.micronaut.http.netty.channel.loom.LoomCarrierConfiguration
- Record Components:
timeSliceLatency
- Time slice size in latency mode.timeSliceThroughput
- Time slice size in throughput mode.fifoSwitchTime
- Number of nanoseconds between switching between continuation FILO and FIFO modes.taskFifoThreshold
- Oldest enqueued continuation must be this old before execution can switch to FIFO mode.blockTime
- Maximum blocking wait time.throughputModeThreshold
- Maximum number of queued tasks before entering throughput mode.workSpillThreshold
- Maximum number of threads per event loop before work spilling should kick in.normalWarmupTasks
- Number of tasks that should run on the normal FJP to initialize e.g. the Poller before switching to the netty scheduler
@ConfigurationProperties("micronaut.netty.loom-carrier")
public record LoomCarrierConfiguration(Duration timeSliceLatency, Duration timeSliceThroughput, Duration fifoSwitchTime, Duration taskFifoThreshold, Duration blockTime, int throughputModeThreshold, int workSpillThreshold, int normalWarmupTasks)
extends Record
Configuration properties for the netty-based virtual thread scheduler. These properties are
experimental and subject to change as the scheduler evolves, even in patch releases.
- Since:
- 4.9.0
- Author:
- Jonas Konrad
-
Constructor Summary
ConstructorsConstructorDescriptionLoomCarrierConfiguration
(Duration timeSliceLatency, Duration timeSliceThroughput, Duration fifoSwitchTime, Duration taskFifoThreshold, Duration blockTime, int throughputModeThreshold, int workSpillThreshold, int normalWarmupTasks) Creates an instance of aLoomCarrierConfiguration
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockTime
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefifoSwitchTime
record component.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of thenormalWarmupTasks
record component.Returns the value of thetaskFifoThreshold
record component.int
Returns the value of thethroughputModeThreshold
record component.Returns the value of thetimeSliceLatency
record component.Returns the value of thetimeSliceThroughput
record component.final String
toString()
Returns a string representation of this record class.int
Returns the value of theworkSpillThreshold
record component.
-
Constructor Details
-
LoomCarrierConfiguration
public LoomCarrierConfiguration(@Bindable(defaultValue="500us") Duration timeSliceLatency, @Bindable(defaultValue="5ms") Duration timeSliceThroughput, @Bindable(defaultValue="1ms") Duration fifoSwitchTime, @Bindable(defaultValue="5ms") Duration taskFifoThreshold, @Bindable(defaultValue="1s") Duration blockTime, @Bindable(defaultValue="10") int throughputModeThreshold, @Bindable(defaultValue="2") int workSpillThreshold, @Bindable(defaultValue="100") int normalWarmupTasks) Creates an instance of aLoomCarrierConfiguration
record class.- Parameters:
timeSliceLatency
- the value for thetimeSliceLatency
record componenttimeSliceThroughput
- the value for thetimeSliceThroughput
record componentfifoSwitchTime
- the value for thefifoSwitchTime
record componenttaskFifoThreshold
- the value for thetaskFifoThreshold
record componentblockTime
- the value for theblockTime
record componentthroughputModeThreshold
- the value for thethroughputModeThreshold
record componentworkSpillThreshold
- the value for theworkSpillThreshold
record componentnormalWarmupTasks
- the value for thenormalWarmupTasks
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
timeSliceLatency
Returns the value of thetimeSliceLatency
record component.- Returns:
- the value of the
timeSliceLatency
record component
-
timeSliceThroughput
Returns the value of thetimeSliceThroughput
record component.- Returns:
- the value of the
timeSliceThroughput
record component
-
fifoSwitchTime
Returns the value of thefifoSwitchTime
record component.- Returns:
- the value of the
fifoSwitchTime
record component
-
taskFifoThreshold
Returns the value of thetaskFifoThreshold
record component.- Returns:
- the value of the
taskFifoThreshold
record component
-
blockTime
Returns the value of theblockTime
record component.- Returns:
- the value of the
blockTime
record component
-
throughputModeThreshold
Returns the value of thethroughputModeThreshold
record component.- Returns:
- the value of the
throughputModeThreshold
record component
-
workSpillThreshold
Returns the value of theworkSpillThreshold
record component.- Returns:
- the value of the
workSpillThreshold
record component
-
normalWarmupTasks
Returns the value of thenormalWarmupTasks
record component.- Returns:
- the value of the
normalWarmupTasks
record component
-