File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
google-cloud-spanner/src/main/java/com/google/cloud/spanner/connection Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 115115import com .google .common .collect .ImmutableMap ;
116116import com .google .spanner .v1 .DirectedReadOptions ;
117117import java .time .Duration ;
118- import java .util .Map ;
119118
120119/**
121120 * Utility class that defines all known connection properties. This class will eventually replace
@@ -541,7 +540,7 @@ class ConnectionProperties {
541540 BooleanConverter .INSTANCE ,
542541 Context .USER );
543542
544- static final Map <String , ConnectionProperty <?>> CONNECTION_PROPERTIES =
543+ static final ImmutableMap <String , ConnectionProperty <?>> CONNECTION_PROPERTIES =
545544 CONNECTION_PROPERTIES_BUILDER .build ();
546545
547546 /** Utility method for creating a new core {@link ConnectionProperty}. */
Original file line number Diff line number Diff line change 1919import com .google .cloud .spanner .ErrorCode ;
2020import com .google .cloud .spanner .SpannerExceptionFactory ;
2121import com .google .common .base .Strings ;
22+ import com .google .common .collect .ImmutableList ;
2223import java .util .Locale ;
2324import javax .annotation .Nonnull ;
2425import javax .annotation .Nullable ;
3738 * connection state is an opt-in.
3839 */
3940public class ConnectionProperty <T > {
41+ public static ImmutableList <ConnectionProperty <?>> VALID_CONNECTION_PROPERTIES =
42+ ImmutableList .copyOf (ConnectionProperties .CONNECTION_PROPERTIES .values ());
43+
4044 /**
4145 * Context indicates when a {@link ConnectionProperty} may be set. Each higher-ordinal value
4246 * includes the preceding values, meaning that a {@link ConnectionProperty} with {@link
You can’t perform that action at this time.
0 commit comments