Package org.rostore.client
Class RoStoreClientProperties
java.lang.Object
org.rostore.client.RoStoreClientProperties
Properties that define connection to the remote rostore service
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the api key used to access the rostoreReturns the base url of the rostore instance, e.g.int
int
int
void
setConnectTimeout
(Duration connectTimeout) void
setMaxConnectionsPerRoute
(int maxConnectionsPerRoute) void
setMaxTotalConnections
(int maxTotalConnections) void
setRequestTimeout
(Duration requestTimeout) void
setUpdateRetries
(int updateRetries) void
setUpdateTimeoutMax
(Duration updateTimeoutMax)
-
Constructor Details
-
RoStoreClientProperties
-
-
Method Details
-
getUpdateRetries
public int getUpdateRetries() -
setUpdateRetries
public void setUpdateRetries(int updateRetries) -
getUpdateTimeoutMax
-
setUpdateTimeoutMax
-
getRequestTimeout
-
setRequestTimeout
-
getApiKey
Returns the api key used to access the rostore- Returns:
- the api key
-
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
- Returns:
-
setConnectTimeout
-
getMaxTotalConnections
public int getMaxTotalConnections() -
setMaxTotalConnections
public void setMaxTotalConnections(int maxTotalConnections) -
getMaxConnectionsPerRoute
public int getMaxConnectionsPerRoute() -
setMaxConnectionsPerRoute
public void setMaxConnectionsPerRoute(int maxConnectionsPerRoute)
-