|
33 | 33 | import com.google.common.util.concurrent.Futures;
|
34 | 34 | import com.google.common.util.concurrent.ListenableFuture;
|
35 | 35 | import com.google.common.util.concurrent.ListeningScheduledExecutorService;
|
| 36 | +import io.netty.handler.ssl.SslContextBuilder; |
| 37 | +import io.r2dbc.spi.ConnectionFactory; |
| 38 | +import io.r2dbc.spi.ConnectionFactoryOptions; |
36 | 39 | import java.io.IOException;
|
37 | 40 | import java.math.BigInteger;
|
38 | 41 | import java.security.GeneralSecurityException;
|
|
49 | 52 | import java.util.Base64;
|
50 | 53 | import java.util.Date;
|
51 | 54 | import java.util.concurrent.ExecutionException;
|
| 55 | +import java.util.function.Function; |
52 | 56 | import javax.security.auth.x500.X500Principal;
|
53 | 57 | import org.bouncycastle.cert.X509CertificateHolder;
|
54 | 58 | import org.bouncycastle.cert.jcajce.JcaX509CertificateConverter;
|
@@ -186,4 +190,32 @@ public void setup() throws GeneralSecurityException {
|
186 | 190 | InternalConnectorRegistry.DEFAULT_CONNECT_TIMEOUT_MS,
|
187 | 191 | defaultExecutor);
|
188 | 192 | }
|
| 193 | + |
| 194 | + public void testThings(){ |
| 195 | + GcpConnectionFactoryProvider provider = new GcpConnectionFactoryProvider() { |
| 196 | + @Override |
| 197 | + ConnectionFactory tcpSocketConnectionFactory(ConnectionConfig config, |
| 198 | + ConnectionFactoryOptions.Builder optionBuilder, |
| 199 | + Function<SslContextBuilder, SslContextBuilder> customizer) { |
| 200 | + return null; |
| 201 | + } |
| 202 | + |
| 203 | + @Override |
| 204 | + ConnectionFactory unixSocketConnectionFactory(ConnectionFactoryOptions.Builder optionBuilder, |
| 205 | + String socket) { |
| 206 | + return null; |
| 207 | + } |
| 208 | + |
| 209 | + @Override |
| 210 | + ConnectionFactoryOptions.Builder createBuilder( |
| 211 | + ConnectionFactoryOptions connectionFactoryOptions) { |
| 212 | + return null; |
| 213 | + } |
| 214 | + |
| 215 | + @Override |
| 216 | + boolean supportedProtocol(String protocol) { |
| 217 | + return false; |
| 218 | + } |
| 219 | + } |
| 220 | + } |
189 | 221 | }
|
0 commit comments