Record Class Tm1Properties.Pool
java.lang.Object
java.lang.Record
io.skipcheck.tm1.spring.boot.autoconfigure.Tm1Properties.Pool
- Record Components:
enabled- whether to create the pool beanidleTimeout- how long a session may go unused before it's evictedmaxAge- how long a session may live before it's evictedmaxSize- the most sessions the pool holdscloseGrace- how long an evicted session stays open for requests still runningsweepInterval- how often the pool looks for expired sessions
- Enclosing class:
Tm1Properties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecloseGracerecord component.booleanenabled()Returns the value of theenabledrecord component.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 theidleTimeoutrecord component.maxAge()Returns the value of themaxAgerecord component.intmaxSize()Returns the value of themaxSizerecord component.Returns the value of thesweepIntervalrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Pool
public Pool(@DefaultValue("false") boolean enabled, @DefaultValue("10m") Duration idleTimeout, @DefaultValue("8h") Duration maxAge, @DefaultValue("100") int maxSize, @DefaultValue("30s") Duration closeGrace, @DefaultValue("1m") Duration sweepInterval) Creates an instance of aPoolrecord class.- Parameters:
enabled- the value for theenabledrecord componentidleTimeout- the value for theidleTimeoutrecord componentmaxAge- the value for themaxAgerecord componentmaxSize- the value for themaxSizerecord componentcloseGrace- the value for thecloseGracerecord componentsweepInterval- the value for thesweepIntervalrecord component
-
-
Method Details
-
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. -
enabled
-
idleTimeout
Returns the value of theidleTimeoutrecord component.- Returns:
- the value of the
idleTimeoutrecord component
-
maxAge
-
maxSize
-
closeGrace
Returns the value of thecloseGracerecord component.- Returns:
- the value of the
closeGracerecord component
-
sweepInterval
Returns the value of thesweepIntervalrecord component.- Returns:
- the value of the
sweepIntervalrecord component
-