Class RoStoreClientProperties

java.lang.Object
org.rostore.client.RoStoreClientProperties

public class RoStoreClientProperties extends Object
Properties that define connection to the remote rostore service
  • Constructor Details

    • RoStoreClientProperties

      public RoStoreClientProperties(String baseUrl, String apiKey)
  • Method Details

    • getUpdateRetries

      public int getUpdateRetries()
    • setUpdateRetries

      public void setUpdateRetries(int updateRetries)
    • getUpdateTimeoutMax

      public Duration getUpdateTimeoutMax()
    • setUpdateTimeoutMax

      public void setUpdateTimeoutMax(Duration updateTimeoutMax)
    • getRequestTimeout

      public Duration getRequestTimeout()
    • setRequestTimeout

      public void setRequestTimeout(Duration requestTimeout)
    • getApiKey

      public String getApiKey()
      Returns the api key used to access the rostore
      Returns:
      the api key
    • getBaseUrl

      public String getBaseUrl()
      Returns the base url of the rostore instance, e.g. https://ro-store.net or http://localhost:8080. All the paths starts immediately after the base url
      Returns:
      the base url
    • getConnectTimeout

      public Duration getConnectTimeout()
      Returns:
    • setConnectTimeout

      public void setConnectTimeout(Duration connectTimeout)
    • getMaxTotalConnections

      public int getMaxTotalConnections()
    • setMaxTotalConnections

      public void setMaxTotalConnections(int maxTotalConnections)
    • getMaxConnectionsPerRoute

      public int getMaxConnectionsPerRoute()
    • setMaxConnectionsPerRoute

      public void setMaxConnectionsPerRoute(int maxConnectionsPerRoute)