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 115
115
import com .google .common .collect .ImmutableMap ;
116
116
import com .google .spanner .v1 .DirectedReadOptions ;
117
117
import java .time .Duration ;
118
- import java .util .Map ;
119
118
120
119
/**
121
120
* Utility class that defines all known connection properties. This class will eventually replace
@@ -541,7 +540,7 @@ class ConnectionProperties {
541
540
BooleanConverter .INSTANCE ,
542
541
Context .USER );
543
542
544
- static final Map <String , ConnectionProperty <?>> CONNECTION_PROPERTIES =
543
+ static final ImmutableMap <String , ConnectionProperty <?>> CONNECTION_PROPERTIES =
545
544
CONNECTION_PROPERTIES_BUILDER .build ();
546
545
547
546
/** Utility method for creating a new core {@link ConnectionProperty}. */
Original file line number Diff line number Diff line change 19
19
import com .google .cloud .spanner .ErrorCode ;
20
20
import com .google .cloud .spanner .SpannerExceptionFactory ;
21
21
import com .google .common .base .Strings ;
22
+ import com .google .common .collect .ImmutableList ;
22
23
import java .util .Locale ;
23
24
import javax .annotation .Nonnull ;
24
25
import javax .annotation .Nullable ;
37
38
* connection state is an opt-in.
38
39
*/
39
40
public class ConnectionProperty <T > {
41
+ public static ImmutableList <ConnectionProperty <?>> VALID_CONNECTION_PROPERTIES =
42
+ ImmutableList .copyOf (ConnectionProperties .CONNECTION_PROPERTIES .values ());
43
+
40
44
/**
41
45
* Context indicates when a {@link ConnectionProperty} may be set. Each higher-ordinal value
42
46
* includes the preceding values, meaning that a {@link ConnectionProperty} with {@link
You can’t perform that action at this time.
0 commit comments