Record Class CmdCacheOption
java.lang.Object
java.lang.Record
com.iohao.net.external.core.hook.cache.CmdCacheOption
- Record Components:
expireTime- Expiration timecacheLimit- Cache limit within cmdActionCacheexpireCheckTime- Cache expiration check time period
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCmdCacheOption(Duration expireTime, int cacheLimit, Duration expireCheckTime) Creates an instance of aCmdCacheOptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic CmdCacheOption.Builderbuilder()intReturns the value of thecacheLimitrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpireCheckTimerecord component.Returns the value of theexpireTimerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CmdCacheOption
Creates an instance of aCmdCacheOptionrecord class.- Parameters:
expireTime- the value for theexpireTimerecord componentcacheLimit- the value for thecacheLimitrecord componentexpireCheckTime- the value for theexpireCheckTimerecord component
-
-
Method Details
-
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. -
expireTime
Returns the value of theexpireTimerecord component.- Returns:
- the value of the
expireTimerecord component
-
cacheLimit
public int cacheLimit()Returns the value of thecacheLimitrecord component.- Returns:
- the value of the
cacheLimitrecord component
-
expireCheckTime
Returns the value of theexpireCheckTimerecord component.- Returns:
- the value of the
expireCheckTimerecord component
-