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 bean
idleTimeout - how long a session may go unused before it's evicted
maxAge - how long a session may live before it's evicted
maxSize - the most sessions the pool holds
closeGrace - how long an evicted session stays open for requests still running
sweepInterval - how often the pool looks for expired sessions
Enclosing class:
Tm1Properties

public static record Tm1Properties.Pool(boolean enabled, Duration idleTimeout, Duration maxAge, int maxSize, Duration closeGrace, Duration sweepInterval) extends Record
The Tm1SessionPool, one session per identity, for applications acting on behalf of many users.
  • 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 a Pool record class.
      Parameters:
      enabled - the value for the enabled record component
      idleTimeout - the value for the idleTimeout record component
      maxAge - the value for the maxAge record component
      maxSize - the value for the maxSize record component
      closeGrace - the value for the closeGrace record component
      sweepInterval - the value for the sweepInterval record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • enabled

      public boolean enabled()
      Returns the value of the enabled record component.
      Returns:
      the value of the enabled record component
    • idleTimeout

      public Duration idleTimeout()
      Returns the value of the idleTimeout record component.
      Returns:
      the value of the idleTimeout record component
    • maxAge

      public Duration maxAge()
      Returns the value of the maxAge record component.
      Returns:
      the value of the maxAge record component
    • maxSize

      public int maxSize()
      Returns the value of the maxSize record component.
      Returns:
      the value of the maxSize record component
    • closeGrace

      public Duration closeGrace()
      Returns the value of the closeGrace record component.
      Returns:
      the value of the closeGrace record component
    • sweepInterval

      public Duration sweepInterval()
      Returns the value of the sweepInterval record component.
      Returns:
      the value of the sweepInterval record component