/** * Request a connection given {@code connectionType} for a specific {@link RedisURI}. Providing a connection type * allows specialization to provide a more specific connection type. * * @param connectionType must not be {@literal null}. * @param redisURI must not be {@literal null}. * @return the requested connection. */ default <T extends StatefulConnection<?, ?>> T getConnection(Class<T> connectionType, RedisURI redisURI) { return LettuceFutureUtils.join(getConnectionAsync(connectionType, redisURI)); }