001 002package io.vrap.rmf.base.client; 003 004import java.util.concurrent.ExecutorService; 005import java.util.function.Supplier; 006 007/** 008 * In order to work, the sdk needs an {@link VrapHttpClient} provider, this can be done by extending {@link HttpClientSupplier} 009 * and exposing it as a service 010 */ 011public abstract class BaseHttpClientSupplier implements HttpClientSupplier { 012 013 /** 014 * The {@link VrapHttpClient} provider method 015 * @return HttpClient implementation 016 */ 017 public abstract VrapHttpClient get(); 018 019 public abstract Supplier<VrapHttpClient> get(ExecutorService executorService); 020}