Search in sources :

Example 1 with CloudRedisStubSettings

use of com.google.cloud.redis.v1beta1.stub.CloudRedisStubSettings in project gapic-generator-java by googleapis.

the class SyncGetInstance method syncGetInstance.

public static void syncGetInstance() throws Exception {
    // This snippet has been automatically generated for illustrative purposes only.
    // It may require modifications to work in your environment.
    CloudRedisStubSettings.Builder cloudRedisSettingsBuilder = CloudRedisStubSettings.newBuilder();
    cloudRedisSettingsBuilder.getInstanceSettings().setRetrySettings(cloudRedisSettingsBuilder.getInstanceSettings().getRetrySettings().toBuilder().setTotalTimeout(Duration.ofSeconds(30)).build());
    CloudRedisStubSettings cloudRedisSettings = cloudRedisSettingsBuilder.build();
}
Also used : CloudRedisStubSettings(com.google.cloud.redis.v1beta1.stub.CloudRedisStubSettings)

Aggregations

CloudRedisStubSettings (com.google.cloud.redis.v1beta1.stub.CloudRedisStubSettings)1