All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.client.hotrod.configuration.ConnectionPoolConfiguration Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.client.hotrod.configuration;

/**
 * ConnectionPoolConfiguration.
 *
 * @author Tristan Tarrant
 * @since 5.3
 */
public class ConnectionPoolConfiguration {
   private final ExhaustedAction exhaustedAction;
   private final int maxActive;
   private final long maxWait;
   private final int minIdle;
   private final long minEvictableIdleTime;
   private final int maxPendingRequests;

   ConnectionPoolConfiguration(ExhaustedAction exhaustedAction, int maxActive, long maxWait, int minIdle, long minEvictableIdleTime, int maxPendingRequests) {
      this.exhaustedAction = exhaustedAction;
      this.maxActive = maxActive;
      this.maxWait = maxWait;
      this.minIdle = minIdle;
      this.minEvictableIdleTime = minEvictableIdleTime;
      this.maxPendingRequests = maxPendingRequests;
   }

   public ExhaustedAction exhaustedAction() {
      return exhaustedAction;
   }

   public int maxActive() {
      return maxActive;
   }

   public long maxWait() {
      return maxWait;
   }

   public int minIdle() {
      return minIdle;
   }

   public long minEvictableIdleTime() {
      return minEvictableIdleTime;
   }

   public int maxPendingRequests() {
      return maxPendingRequests;
   }

   @Override
   public String toString() {
      return "ConnectionPoolConfiguration{" +
            "exhaustedAction=" + exhaustedAction +
            ", maxActive=" + maxActive +
            ", maxWait=" + maxWait +
            ", minIdle=" + minIdle +
            ", minEvictableIdleTime=" + minEvictableIdleTime +
            ", maxPendingRequests=" + maxPendingRequests +
            '}';
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy