Record Class IdleProcessSetting
java.lang.Object
java.lang.Record
com.iohao.net.external.core.hook.internal.IdleProcessSetting
- Record Components:
pong- whether to respond to heartbeat requests with a pong messagereaderIdleTime- reader-idle timeoutwriterIdleTime- writer-idle timeoutallIdleTime- all-idle timeouttimeUnit- time unit used by idle timeout valuesidleHook- heartbeat callback hook
-
Constructor Summary
ConstructorsConstructorDescriptionIdleProcessSetting(boolean pong, long readerIdleTime, long writerIdleTime, long allIdleTime, TimeUnit timeUnit, IdleHook<?> idleHook) Creates an instance of aIdleProcessSettingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theallIdleTimerecord component.static IdleProcessSettingBuilderbuilder()Create a mutable builder with framework defaults.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.IdleHook<?> idleHook()Returns the value of theidleHookrecord component.booleanpong()Returns the value of thepongrecord component.longReturns the value of thereaderIdleTimerecord component.timeUnit()Returns the value of thetimeUnitrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thewriterIdleTimerecord component.
-
Constructor Details
-
IdleProcessSetting
public IdleProcessSetting(boolean pong, long readerIdleTime, long writerIdleTime, long allIdleTime, TimeUnit timeUnit, IdleHook<?> idleHook) Creates an instance of aIdleProcessSettingrecord class.- Parameters:
pong- the value for thepongrecord componentreaderIdleTime- the value for thereaderIdleTimerecord componentwriterIdleTime- the value for thewriterIdleTimerecord componentallIdleTime- the value for theallIdleTimerecord componenttimeUnit- the value for thetimeUnitrecord componentidleHook- the value for theidleHookrecord component
-
-
Method Details
-
builder
Create a mutable builder with framework defaults.- Returns:
- idle process setting builder
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
pong
-
readerIdleTime
public long readerIdleTime()Returns the value of thereaderIdleTimerecord component.- Returns:
- the value of the
readerIdleTimerecord component
-
writerIdleTime
public long writerIdleTime()Returns the value of thewriterIdleTimerecord component.- Returns:
- the value of the
writerIdleTimerecord component
-
allIdleTime
public long allIdleTime()Returns the value of theallIdleTimerecord component.- Returns:
- the value of the
allIdleTimerecord component
-
timeUnit
-
idleHook
-