All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ai.promoted.delivery.client.DefaultApiFactory Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
package ai.promoted.delivery.client;

/**
 * API factory that creates the standard API clients.
 */
public class DefaultApiFactory implements ApiFactory {

  @Override
  public Delivery createSdkDelivery() {
    return new SdkDelivery();
  }

  @Override
  public Delivery createApiDelivery(String endpoint, String apiKey, long timeoutMillis, boolean warmup, int maxRequestInsertions, boolean acceptGzip, boolean useGrpc) {
    return new ApiDelivery(endpoint, apiKey, timeoutMillis, warmup, maxRequestInsertions, acceptGzip, useGrpc);
  }

  @Override
  public Metrics createApiMetrics(String endpoint, String apiKey, long timeoutMillis) {
    return new ApiMetrics(endpoint, apiKey, timeoutMillis);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy