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

com.netflix.evcache.EVCacheClientPoolConfigurationProperties Maven / Gradle / Ivy

The newest version!
package com.netflix.evcache;

import java.time.Duration;

public class EVCacheClientPoolConfigurationProperties {
  /**
   * Prefix to be applied to keys.
   */
  private String keyPrefix;

  /**
   * Time-to-live in seconds.
   */
  private Duration timeToLive;

  /**
   * Whether or not retry is to be enabled.
   */
  private Boolean retryEnabled = true;

  /**
   * Whether or not exception throwing is to be enabled.
   */
  private Boolean exceptionThrowingEnabled = false;


  public EVCacheClientPoolConfigurationProperties() {
    this.keyPrefix = "";
    this.timeToLive = Duration.ofSeconds(900);
    this.retryEnabled = true;
    this.exceptionThrowingEnabled = false;
  }

  public String getKeyPrefix() {
    return keyPrefix;
  }

  public void setKeyPrefix(String keyPrefix) {
    this.keyPrefix = keyPrefix;
  }

  public Duration getTimeToLive() {
    return timeToLive;
  }

  public void setTimeToLive(Duration timeToLive) {
    this.timeToLive = timeToLive;
  }

  public Boolean getRetryEnabled() {
    return retryEnabled;
  }

  public void setRetryEnabled(Boolean retryEnabled) {
    this.retryEnabled = retryEnabled;
  }

  public Boolean getExceptionThrowingEnabled() {
    return exceptionThrowingEnabled;
  }

  public void setExceptionThrowingEnabled(Boolean exceptionThrowingEnabled) {
    this.exceptionThrowingEnabled = exceptionThrowingEnabled;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy