Class ClientConfigurationUtils
- java.lang.Object
-
- com.commercetools.sync.commons.utils.ClientConfigurationUtils
-
public final class ClientConfigurationUtils extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static io.sphere.sdk.client.SphereClient
createClient(io.sphere.sdk.client.SphereClientConfig clientConfig)
Creates aSphereClient
with retry logic which computes a exponential backoff time delay in milliseconds.static io.sphere.sdk.client.SphereClient
createClient(io.sphere.sdk.client.SphereClientConfig clientConfig, long timeout, java.util.concurrent.TimeUnit timeUnit)
Creates aBlockingSphereClient
with a customtimeout
with a customTimeUnit
.
-
-
-
Method Detail
-
createClient
public static io.sphere.sdk.client.SphereClient createClient(@Nonnull io.sphere.sdk.client.SphereClientConfig clientConfig)
Creates aSphereClient
with retry logic which computes a exponential backoff time delay in milliseconds.- Parameters:
clientConfig
- the client configuration for the client.- Returns:
- the instantiated
SphereClient
.
-
createClient
public static io.sphere.sdk.client.SphereClient createClient(@Nonnull io.sphere.sdk.client.SphereClientConfig clientConfig, long timeout, @Nonnull java.util.concurrent.TimeUnit timeUnit)
Creates aBlockingSphereClient
with a customtimeout
with a customTimeUnit
.- Parameters:
clientConfig
- the client configuration for the client.timeout
- the timeout value for the client requests.timeUnit
- the timeout time unit.- Returns:
- the instantiated
BlockingSphereClient
.
-
-