Skip to content

Commit 2077a0c

Browse files
committed
Making setServiceFactory public in SpannerConfig
1 parent 5892df8 commit 2077a0c

File tree

1 file changed

+2
-3
lines changed
  • sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner

1 file changed

+2
-3
lines changed

Diff for: sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/SpannerConfig.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ public abstract class SpannerConfig implements Serializable {
8282

8383
public abstract @Nullable ValueProvider<Duration> getPartitionReadTimeout();
8484

85-
@VisibleForTesting
86-
abstract @Nullable ServiceFactory<Spanner, SpannerOptions> getServiceFactory();
85+
public abstract @Nullable ServiceFactory<Spanner, SpannerOptions> getServiceFactory();
8786

8887
public abstract @Nullable ValueProvider<Boolean> getDataBoostEnabled();
8988

@@ -267,7 +266,7 @@ public SpannerConfig withRetryableCodes(ImmutableSet<Code> retryableCodes) {
267266

268267
/** Specifies the service factory to create instance of Spanner. */
269268
@VisibleForTesting
270-
SpannerConfig withServiceFactory(ServiceFactory<Spanner, SpannerOptions> serviceFactory) {
269+
public SpannerConfig withServiceFactory(ServiceFactory<Spanner, SpannerOptions> serviceFactory) {
271270
return toBuilder().setServiceFactory(serviceFactory).build();
272271
}
273272

0 commit comments

Comments
 (0)